[Haskell-cafe] Benchmark of DFT libraries in Haskell
es at ertes.de
Mon Aug 6 03:37:52 CEST 2012
Takayuki Muranushi <muranushi at gmail.com> wrote:
> * vector-fftw with wisdom was more than 1/2 times faster than fftw in
> C with wisdom (and with communication overhead.)
> * vector-fftw without wisdom was significantly _faster_ than fftw in C
> without wisdom. I wonder why.
> * vector-fftw over vector was faster than fft over CArray.
> * any library that doesn't use fftw is much slower than those that
I have no experience with FFTW, but in general a result like this often
means that you may not have actually calculated the values themselves.
One easy way to ensure this is to print out the whole result. If you
feel like printing takes too much CPU time for comparison, you need to
force deeply like with deepseq.
Notably Data.Vector is a lazy data structure. If you force the vector
itself, you are not forcing the individual values. For FFT I would
assume that the length of the resulting vector does not depend on any
Not to be or to be and (not to be or to be and (not to be or to be and
(not to be or to be and ... that is the list monad.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: not available
More information about the Haskell-Cafe