from java.lang import System t0= System.currentTimeMillis() waveform= zeros(50000,512) waveform= putProperty( waveform,QDataSet.DEPEND_0,timegen('2015-01-01T00:00','1s',50000) ) waveform= putProperty( waveform,QDataSet.DEPEND_1, putProperty( indgen(512)/512, QDataSet.UNITS, Units.seconds ) ) tcreateWaveform= ( System.currentTimeMillis() - t0 ) t0= System.currentTimeMillis() fftw= fftPower( waveform, 512, 2, 'Hanning', monitor ) tfftPower= ( System.currentTimeMillis() - t0 ) t0= System.currentTimeMillis() plot( fftw ) tplot= ( System.currentTimeMillis() - t0 ) f= open( '/home/jbf/ct/hudson/stats/test037_fftBenchmark.txt', 'a' ) f.write( '%s %f %f %f\n' % ( TimeUtil.now(), tcreateWaveform, tfftPower, tplot ) ) f.close() writeToPng('test037_fftBenchmark.png')