[Numpy-discussion] NumPy speed tests by NASA
Gökhan Sever
gokhansever at gmail.com
Tue Feb 22 18:19:31 EST 2011
On Tue, Feb 22, 2011 at 2:44 PM, Alan G Isaac <alan.isaac at gmail.com> wrote:
>
>
> I don't believe the matrix multiplication results.
> Maybe I misunderstand them ...
>
> >>> t = timeit.Timer("np.dot(A,B)","import numpy as
> np;N=1500;A=np.random.random((N,N));B=np.random.random((N,N))")
> >>> print t.timeit(number=10)/10.
> 1.09043075307
>
> I'm using the precompiled Windows binaries.
This is on Fedora 14 x86_64 --using Fedora provided builds of ATLAS, and
build using gcc/gfortran.
>>> t = timeit.Timer("np.dot(A,B)","import numpy as
np;N=1500;A=np.random.random((N,N));B=np.random.random((N,N))")
>>> print t.timeit(number=10)/10.
0.497710204124
I am guessing ATLAS is thread aware since with N=15000 each of the quad core
runs at %100. Probably MKL build doesn't bring much speed advantage in this
computation. Any thoughts?
--
Gökhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110222/77eef592/attachment.html>
More information about the NumPy-Discussion
mailing list