|
From: Francesc A. <fa...@ca...> - 2005-10-06 19:43:07
|
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 =3D "import Numeric; a =3D Numeric.arange(2000);a.shape=3D(1000,2=
)"
>>> Timer("for i in range(len(a)): row=3Da[i]", setup).timeit(number=3D100)
0.12782907485961914
>>> setup =3D "import numarray; a =3D numarray.arange(2000);a.shape=3D(1000=
,2)"
>>> Timer("for i in range(len(a)): row=3Da[i]", setup).timeit(number=3D100)
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,
=2D-=20
>0,0< Francesc Altet =A0 =A0 http://www.carabos.com/
V V C=E1rabos Coop. V. =A0=A0Enjoy Data
"-"
|