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
_______________________________________________
pypy-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to