|
|
Subscribe / Log in / New account

A brief experiment with PyPy

A brief experiment with PyPy

Posted May 12, 2011 8:05 UTC (Thu) by ernstp (guest, #13694)
Parent article: A brief experiment with PyPy

I've written an a-star pathfinding module in Python and tried it with PyPy.
PyPy is 3-4 times faster! Also, I saw that 32-bit PyPy is about 30% faster than 64-bit PyPy. PyPy uses a bit more memory but not that much!

Python 2.7:

0.00002927894592285156

23.77user 0.00system 0:23.79elapsed 99%CPU (0avgtext+0avgdata 63472maxresident)k
0inputs+0outputs (0major+4375minor)pagefaults 0swaps

32-bit PyPy 15:

0.00000724706649780273

8.01user 0.05system 0:08.08elapsed 99%CPU (0avgtext+0avgdata 80064maxresident)k
0inputs+0outputs (0major+5578minor)pagefaults 0swaps


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds