Giter Site home page Giter Site logo

j-funk / js-dsp-test Goto Github PK

View Code? Open in Web Editor NEW
19.0 3.0 3.0 6.37 MB

Quick evaluation of some FFT jobs in Javascript.

C 72.82% JavaScript 1.05% Makefile 8.03% Ruby 0.02% HTML 7.12% Shell 2.78% Fortran 0.46% C++ 2.11% Perl 0.46% M4 0.40% TeX 2.58% OCaml 2.03% Standard ML 0.01% Roff 0.08% CSS 0.01% QMake 0.01% Objective-C 0.03% Objective-C++ 0.02%
dsp fft digital-signal-processing benchmark comparison fast-fourier-transform discrete-fourier-transform

js-dsp-test's Introduction

A quick evaluation of some FFT jobs in Javascript.

Packaged Javascript versions of the benchmarked FFTW and KissFFT modules are available.

Running in Chrome 62 on OSX

Uses existing library code where possible, and compares "Javascript source" with code compiled from other languages using Emscripten or similar. Only forward transforms are tested at this point (the inverse transforms may or may not produce the right results).

You can run these tests in a browser by checking out this repo and opening the file fft/index.html.

Since the fork we've added a modified version of the DSP.js FFT and a Real-to-Real algorithm from FFTW. As well as an optimization to the compile parameters which vastly improved the runtime of both FFTW and KissFFT ports. You can view the original Mercurial repository by Chris Cannam (from which this is forked) here.

js-dsp-test's People

Contributors

j-funk avatar mfcc64 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

js-dsp-test's Issues

Array OOB

FYI: The line " dest[i] = source[r];" (Line 48) sometimes attempts to store a value to an index that hasn't been allocated. Of course, it's Javascript so maybe the author intended this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.