diff options
author | njsmith <njs@pobox.com> | 2013-03-01 05:33:49 -0800 |
---|---|---|
committer | njsmith <njs@pobox.com> | 2013-03-01 05:33:49 -0800 |
commit | d1e692d70da7532b02d752d0842987333bd76c70 (patch) | |
tree | 894a9597347c7530f003ade7e251add0302cfaaf /benchmarks/casting.py | |
parent | d1b5ea9307f2d17a13d4497d8e9516587964ccd7 (diff) | |
parent | d1e6fc3b81bc0557d74771cfffa04af2c62012f7 (diff) | |
download | numpy-d1e692d70da7532b02d752d0842987333bd76c70.tar.gz |
Merge pull request #3101 from charris/remove-benchmarks
REM: Remove benchmarks files.
Diffstat (limited to 'benchmarks/casting.py')
-rw-r--r-- | benchmarks/casting.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/benchmarks/casting.py b/benchmarks/casting.py deleted file mode 100644 index 5624fddfa..000000000 --- a/benchmarks/casting.py +++ /dev/null @@ -1,17 +0,0 @@ -from benchmark import Benchmark - -modules = ['numpy','Numeric','numarray'] - -b = Benchmark(modules, - title='Casting a (10,10) integer array to float.', - runs=3,reps=10000) - -N = [10,10] -b['numpy'] = ('b = a.astype(int)', - 'a=numpy.zeros(shape=%s,dtype=float)' % N) -b['Numeric'] = ('b = a.astype("l")', - 'a=Numeric.zeros(shape=%s,typecode="d")' % N) -b['numarray'] = ("b = a.astype('l')", - "a=numarray.zeros(shape=%s,typecode='d')" % N) - -b.run() |