summaryrefslogtreecommitdiff
path: root/benchmarks/creating.py
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/creating.py')
-rw-r--r--benchmarks/creating.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/benchmarks/creating.py b/benchmarks/creating.py
index b8bb30f47..462d2cd19 100644
--- a/benchmarks/creating.py
+++ b/benchmarks/creating.py
@@ -1,9 +1,9 @@
import timeit
-N = [1000,100]
+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,100)
-print "Numeric: ", t2.repeat(3,100)
-print "Numarray: ", t3.repeat(3,100)
+print "NumPy: ", t1.repeat(3,10000)
+print "Numeric: ", t2.repeat(3,10000)
+print "Numarray: ", t3.repeat(3,10000)