diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-07-02 02:59:54 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-07-02 02:59:54 +0000 |
commit | da42cda6ebd4666299c1287b8fdec82df15197fe (patch) | |
tree | 09b0657a2556c799e67e9e63da70019386a9c80f /benchmarks/creating.py | |
parent | c00b40099043644cca23b6044c276ad72e9b8591 (diff) | |
download | numpy-da42cda6ebd4666299c1287b8fdec82df15197fe.tar.gz |
Remove dependency on _internal.py from pickles. Clean up Py_ssize_t usage. Add .ctypes attribute for use with the ctypes module if it's available.
Diffstat (limited to 'benchmarks/creating.py')
-rw-r--r-- | benchmarks/creating.py | 8 |
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) |