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

David Cournapeau david at ar.media.kyoto-u.ac.jp
Fri Sep 11 03:12:27 EDT 2009


V. Armando Solé wrote:
> Hello,
>
> I have found performance problems under windows when using python 2.6
> In my case, they seem to be related to the dot product.
>
> The following simple script:
>
> 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
>
> Same version of numpy, same machine, official numpy installers for 
> windows (both with nosse flag)
>   

Could you confirm this by pasting the output of numpy.show_config() in
both versions ?

cheers,

David



More information about the NumPy-Discussion mailing list