[SciPy-dev] Sorting speed

Travis Oliphant oliphant.travis at ieee.org
Fri Dec 30 22:06:52 CST 2005


I've checked in sorting improvements to scipy_core SVN.

I've also added a benchmarks directory for storing little benchmark 
programs.  The attached program is already there.

It's output for me is:

1-D length = 10000
Numarray:  [0.26125383377075195, 0.26763486862182617, 0.25728297233581543]
SciPy:  [0.22897696495056152, 0.2154390811920166, 0.2216179370880127]
Numeric:  [0.3624110221862793, 0.37320113182067871, 0.3526921272277832]

2-D shape = (100,100), last-axis
Numarray:  [1.013077974319458, 0.93102908134460449, 1.0637660026550293]
SciPy:  [0.15087985992431641, 0.094407081604003906, 0.093811988830566406]
Numeric:  [0.29771900177001953, 0.23210597038269043, 0.22986793518066406]

2-D shape = (100,100), first-axis
Numarray:  [3.3508830070495605, 4.4938950538635254, 3.2825040817260742]
SciPy:  [0.25642704963684082, 0.18298697471618652, 0.18323087692260742]
Numeric:  [0.3815300464630127, 0.30514788627624512, 0.31459379196166992]


I think scipy is sorting faster now....

-Travis




-------------- next part --------------
A non-text attachment was scrubbed...
Name: sorting.py
Type: text/x-python
Size: 1308 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-dev/attachments/20051230/5b12084a/attachment.py 


More information about the Scipy-dev mailing list