[Numpy-discussion] A comparative test

Francesc Altet faltet at carabos.com
Thu Oct 6 12:43:46 EDT 2005


A Dijous 06 Octubre 2005 20:55, Colin J. Williams va escriure:
> RESULTS:
>  >pythonw -u "NumericNumarrayTest.py"
>
> Timer-Numeric23.8: 0.179712784725
> Timer-numarray1.3.3: 0.21674933546
> Timer-Numeric3: 0.253077136899

Is that really true? From my original post:

>>> from timeit import Timer
>>> setup = "import Numeric; a = Numeric.arange(2000);a.shape=(1000,2)"
>>> Timer("for i in range(len(a)): row=a[i]", setup).timeit(number=100)
 0.12782907485961914
>>> setup = "import numarray; a = numarray.arange(2000);a.shape=(1000,2)"
>>> Timer("for i in range(len(a)): row=a[i]", setup).timeit(number=100)
 1.2013700008392334

My post was from January, so, in the interim numarray has improved *a
lot* it's object creation time. In that case, why the numarray team
hasn't publisized that more? Well, I think I should be missing
something. Time for nap.

Cheers,

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"





More information about the NumPy-Discussion mailing list