Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 2.42 KB

benchmark.md

File metadata and controls

48 lines (40 loc) · 2.42 KB

Fourier transform packages comparison

Packages are npm-searched by keywords fourier, fft and alike.

The task is to process waveform of 4096 real/imaginary numbers 1000 times. Results show total time taken in my laptop (lenovo x220 if it makes sense) in node6.

PS. Correctness of transforms is not verified, we trust developers in that sense.

PPS. Results are opinionated single-run measurements, so there are deviations, but relative performance is demonstrative.

PPPS. I did not do any research of options of these packages, just used default settings. Quite possibly some packages use windowing, table creation or other pre-calculation which affects performance and can be disabled.

PPPPS. I was unable to compile dsp, node-fft, kissfft. They have native bindings and may render decent results.

PPPPPS. If you feel like running benchmark for yourself or contributing: clone repo, do npm install and npm test.