[pypy-dev] Matrix dot product

Gayathri J usethisid2014 at gmail.com
Wed Jun 11 18:07:17 CEST 2014


Following is my python code for matrix multiplication


*import time*
*a=random.rand(1**28,128,128,15)*
*b=np.random.rand(15,15)*
*c=np.zeros((128,128,128,15), dtype=np.float64)*
*t=time.time()*
*c=a.dot(b)*
*print time.time()-t*


Timing for

*pypy -> 3.957*
*python 2.7 -> .80*

So find that the basic matrix dot operation is faster on python 2.7 than on
pypy 2.2.1
why is this so? am i missing something?

thanks gayathri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20140611/3b512e37/attachment.html>


More information about the pypy-dev mailing list