diff options
Diffstat (limited to 'benchmarks/creating.py')
-rw-r--r-- | benchmarks/creating.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/benchmarks/creating.py b/benchmarks/creating.py deleted file mode 100644 index 462d2cd19..000000000 --- a/benchmarks/creating.py +++ /dev/null @@ -1,9 +0,0 @@ -import timeit -N = [10,10] -t1 = timeit.Timer('a=N.zeros(shape,type)','import numpy as N; shape=%s;type=float'%N) -t2 = timeit.Timer('a=N.zeros(shape,type)','import Numeric as N; shape=%s;type=N.Float'%N) -t3 = timeit.Timer('a=N.zeros(shape,type)',"import numarray as N; shape=%s;type=N.Float"%N) -print "shape = ", N -print "NumPy: ", t1.repeat(3,10000) -print "Numeric: ", t2.repeat(3,10000) -print "Numarray: ", t3.repeat(3,10000) |