[SciPy-dev] Some benchmarks of new SVN scipy

Travis Oliphant oliphant at ee.byu.edu
Mon Oct 3 19:48:53 CDT 2005


Chris did some early benchmarks and we were able to speed up some things 
in current SciPy.

Attached is the code: 

Here are my results for various values of N, and Nl (using SVN 
scipy_core)...

Number of loops = 50
Size of matrix = 1000 x 1000
time for numarray = 10.834883213
time for numeric = 33.9484729767
time for scipy = 9.82745909691

Number of loops = 500
Size of matrix = 100 x 100
time for numarray = 0.684185028076
time for numeric = 1.40390586853
time for scipy = 0.416875839233

Number of loops = 5000
Size of matrix = 10 x 10
time for numarray = 1.48704504967
time for numeric = 0.419279098511
time for scipy = 0.906091928482

Number of loops = 5000
Size of matrix = 1 x 1
time for numarray = 1.45864701271
time for numeric = 0.344217061996
time for scipy = 0.856736898422


Conclusion,

SciPy is as fast as (or faster than) numarray for large arrays (at least 
in this test), but for many small arrays can still be a bit slower 
(there is currently more setup time for the ufunc loop)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_bigarray.py
Type: application/x-python
Size: 1044 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-dev/attachments/20051003/6e91f1dc/attachment.bin 


More information about the Scipy-dev mailing list