wanderingmind 2 days ago

How in the world is pypy faster than cpython by almost 2 orders of magnitude. Is pypy normally faster in other benchmarks. If so, why? Can some python expert pitch in?

2
lights0123 2 days ago

PyPy uses just-in-time compilation, so for arithmetic-heavy computations not involving the GC, it should absolutely be faster.

cuchoi 2 days ago

This is the exact code you would expect pypy to run faster.