OS: Ubuntu 14.04
CPU: i7
I Installed PyPy+Numpy:
sudo add-apt-repository ppa:pypy/ppa sudo apt-get update sudo apt-get install pypy pypy-dev pip install git+https://bitbucket.org/pypy/numpy.git
Ran following code with
python
andpypy
:import numpy as np import time start = time.clock() for i in range(5): vv = np.random.rand(9000000).astype(np.float32) m = np.mean(vv) print 'Done in %.3f s %s ' % (time.clock()-start,m)
And got the following timings:
$python testSpeed_.py Done in 1.908 s 0.499997 $pypy testSpeed_.py Done in 4.599 s 0.499952167273
i.e. no performance improvement. Should I have gotten a performance boost?