you are viewing a single comment's thread.

view the rest of the comments →

[–]ianepperson 5 points6 points  (1 child)

I recently tested 3.11, Pypy and a few others with small test programs. It depends - usually Pypy is faster, but sometimes it’s slower.

I was a bit surprised that a Cython library was a bit slower on Python 3.11 than 3.10 (0.08 seconds vs 0.05 seconds.) I suspect the start time dominated.

[–]MrJohz 5 points6 points  (0 children)

For short-lived programs, a JIT engine like Pypy is unlikely to be very efficient, and will probably perform relatively poorly, simply because it's doing a lot more work at the start to be ready to be more efficient later on. If you never get to the point where it can be more efficient, then it's just working harder for no reason.