3 ms·
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 p
by wanderingmind 2y 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 2y agoPyPy uses just-in-time compilation, so for arithmetic-heavy computations not involving the GC, it should absolutely be faster.
- cuchoi 2y agoThis is the exact code you would expect pypy to run faster.
- igouy 2y ago"On average, PyPy is 4.4 times faster than CPython 3.7." https://pypy.org/ https://pypy.org/
- igouy 2y agohttps://speed.pypy.org/ https://speed.pypy.org/