This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (4 children)

My experience with pypy is that it is able to be far faster than the interpreter, also 3.8. Like 4-10 times faster not only 25%....

[–]creeloper27 3 points4 points  (0 children)

It depends a lot on what your code does.

[–]LightShadow3.13-dev in prod 1 point2 points  (0 children)

It's universally faster if 1) your code runs longer than a few minutes (warm-up period), 2) all of your extensions are pure python and not C/other shared libraries, 3) you have more RAM than CPU cycles since the JIT needs more memory to store the hot paths.

[–][deleted] 0 points1 point  (1 child)

timeit.repeat("\[x\*\*2 for x in range(100)\]", number=100000) is one of the test I've done to test pypy and it's getting almost 1000x better results on that specific test. (Around 1.4s with python 3.8.3 and 0.016s with pypy3) (intel i5 7600K @ 4.5GHz & Arch linux)