tinypythonpanadapter/fft_bench.ipy

11 wiersze
247 B
Plaintext
Czysty Zwykły widok Historia

2014-05-01 17:50:42 +00:00
#!/usr/bin/env ipython
2014-05-18 00:33:52 +00:00
# FFT timing benchmarks (requires ipython and numpy packages)
2014-05-01 17:50:42 +00:00
import math
import numpy as np
for n in [224, 256, 257, 288, 320, 384, 448, 512, 513, 576]:
print "Size =", n,
%timeit np.fft.fft(np.random.random(n))