4 ms·
I am surprised PyPy has such a huge lead over Python. $ time python pyrb.py real 348m35.965s user 345m51.776s sys 0m22.880s $
by kev6168 7y ago
I am surprised PyPy has such a huge lead over Python.
$ time python pyrb.py
real 348m35.965s
user 345m51.776s
sys 0m22.880s
$ time pypy pyrb.py
real 14m2.406s
user 13m55.292s
sys 0m1.416s
- FartyMcFarter 7y ago10-100x speedup seems normal for CPython vs well compiled code. I don't have experience with PyPy though, so in this specific case I'm not sure.
- X6S1x6Okd1st 7y agoRaytracing is a pretty great place to apply pypy, you have a very heavy loop that will hit the JIT. I've certainly seen speedups like that on stuff like project euler code.