Skip to content Skip to sidebar Skip to footer

Am I Using Pypy Wrong? It's Slower 10x Than Standard Python

I have heard good stuff about PyPy. In particular I'd heard that it was very fast which made me wonder if it might be usable for an embedded project I have. I downloaded PyPy-2.6 f

Solution 1:

It is only faster for certain applications. Quoting the PyPy doc:

There are two cases that you should be aware where PyPy will not be able to speed up your code:

  • Short-running processes: if it doesn't run for at least a few seconds, then the JIT compiler won't have enough time to warm up.

  • If all the time is spent in run-time libraries (i.e. in C functions), and not actually running Python code, the JIT compiler will not help.

Since your program seems to run on the order of 10 or 10 seconds, the JIT compiler doesn't do you any good.

Post a Comment for "Am I Using Pypy Wrong? It's Slower 10x Than Standard Python"