Remix.run Logo
wanderingmind 9 hours 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?

lights0123 8 hours ago | parent | next [-]

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

cuchoi 6 hours ago | parent | prev [-]

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