| ▲ | wanderingmind a year 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 a year ago | parent | next [-] | |||||||
PyPy uses just-in-time compilation, so for arithmetic-heavy computations not involving the GC, it should absolutely be faster. | ||||||||
| ▲ | igouy a year ago | parent | prev | next [-] | |||||||
"On average, PyPy is 4.4 times faster than CPython 3.7." | ||||||||
| ||||||||
| ▲ | cuchoi a year ago | parent | prev [-] | |||||||
This is the exact code you would expect pypy to run faster. | ||||||||