chromium/chrome/test/data/third_party/kraken/tests/kraken-1.1/audio-dft.js

var iterations = 20;

var dft = new DFT(frameBufferLength / channels, rate);

var calcDFT = function() {
  var fb     = getFramebuffer(), signal = DSP.getChannel(DSP.MIX, fb);
  dft.forward(signal);
};

runTest(calcDFT, iterations);