[pypy-dev] pypy performance on fractal terrain generator.

sean riley mrrileyx at gmail.com
Sat May 18 20:03:47 CEST 2013


FYI. Performance comparison of pypy and CPython using a fractal terrain
generator and writing out a png file. Pypy is 6-11x faster on my Ubuntu
Intel system.


For 1024x1024 map:

sriley at xxxy:/data/src/cityserver$ time pypy map.py
real 0m0.656s
user 0m0.596s
sys 0m0.052s

sriley at xxx:/data/src/cityserver$ time python map.py
real 0m4.189s
user 0m4.132s
sys 0m0.044s

For 4096x4096 map:

sriley at xxx:/data/src/cityserver$ time pypy map.py
real 0m6.511s
user 0m6.152s
sys 0m0.328s

sriley at xxx:/data/src/cityserver$ time python map.py
real 1m7.641s
user 1m7.124s
sys 0m0.324s


Sean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20130518/0d884b70/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: map.py
Type: application/octet-stream
Size: 459 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20130518/0d884b70/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: terrain.py
Type: application/octet-stream
Size: 3811 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20130518/0d884b70/attachment-0001.obj>


More information about the pypy-dev mailing list