[Numpy-discussion] Dot product performance on python 2.6 (windows)

Sturla Molden sturla@molden...
Fri Sep 11 04:05:28 CDT 2009


V. Armando Solé skrev:
> import numpy
> import time
> a=numpy.arange(1000000.)
> a.shape=1000,1000
> t0=time.time()
> b=numpy.dot(a.T,a)
> print "Elapsed time = ",time.time()-t0
>
> reports an "Elapsed time" of 1.4 seconds under python 2.5 and 15 seconds 
> under python 2.6
>   
My computer reports 0.34 seconds (Pytin 2.6.2, Win32).


S.M.


More information about the NumPy-Discussion mailing list