Python Interpreters Benchmarks
x64 ArchLinux : AMD® Ryzen 7 4700U®

vs

 1 : Are the PyPy 3 programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest PyPy 3 program used compared to the fastest Python 3 program.

(Memory use is only compared for tasks that require memory to be allocated.)


These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.

 2 : Are the PyPy 3 programs faster? Approximately.

Each table row shows, for one named benchmark, how much the fastest PyPy 3 program used compared to the fastest Python 3 program.

(Memory use is only compared for tasks that require memory to be allocated.)

 PyPy 3 used what fraction? used how many times more? 
Benchmark Time Memory Code
 n-body1/6 ±
 fib501/3 ±
 richards1/3 ±
 meteor-contest1/3 ±
 jsonbench1/2 ±
 fasta †1/2 ±
 pystone±?±
 spectral-norm †±?
 fasta-redux±?±
 thread-ring †± ±
 fannkuch-redux± ±
 k-nucleotide †?±
 iobench ±
 reverse-complement †?±
 regex-dna?±
 binary-trees36×±
 pidigits †102×?±
 PyPy 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/61/61/2±102×

† possible mismatch - one-core program compared to multi-core program.

± read the measurements and then read the program source code.

 3 : Are the PyPy 3 programs faster? Measurements.

These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.

For each named benchmark, measurements of the fastest PyPy 3 program are shown for comparison against measurements of the fastest Python 3 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 n-body 
PyPy 33.193.1967,4641315  0% 0% 100% 0% 0% 1% 0% 1%
Python 320.6920.7010,5841315  1% 0% 0% 0% 0% 100% 0% 1%
 fib50 
PyPy 30.590.5970,684136  2% 0% 100% 0% 0% 2% 0% 2%
Python 31.631.6410,196136  100% 1% 2% 1% 1% 0% 0% 1%
 richards 
PyPy 30.180.18?2434  0% 0% 0% 100% 0% 6% 0% 10%
Python 30.490.4911,0922434  2% 4% 0% 2% 2% 100% 0% 0%
 meteor-contest 
PyPy 30.640.6574,0281443  3% 2% 100% 2% 0% 6% 2% 3%
Python 31.701.7010,9641443  1% 1% 1% 0% 0% 0% 0% 99%
 jsonbench 
PyPy 30.960.9776,696322  0% 0% 1% 0% 0% 0% 100% 2%
Python 32.002.0013,956322  2% 0% 1% 100% 0% 1% 1% 2%
 fasta 
PyPy 31.361.3770,1481698  4% 1% 2% 1% 3% 100% 2% 2% †
Python 34.912.7165,7202016  44% 38% 4% 3% 60% 0% 26% 12% †
 pystone 
PyPy 30.080.09?2300  0% 0% 88% 0% 0% 12% 11% 0%
Python 30.110.12?2300  100% 8% 0% 0% 0% 0% 0% 0%
 spectral-norm 
PyPy 30.090.09?594  0% 18% 100% 0% 11% 0% 0% 11% †
Python 30.110.11?394  100% 0% 0% 0% 0% 0% 8% 0% †
 fasta-redux 
PyPy 30.150.15?1115  6% 100% 0% 0% 0% 12% 0% 0%
Python 30.170.17?1115  100% 6% 6% 0% 0% 0% 0% 6%
 thread-ring 
PyPy 30.130.26128406  22% 15% 50% 38% 8% 8% 4% 4% †
Python 30.280.281,920406  100% 7% 0% 0% 4% 0% 0% 3% †
 fannkuch-redux 
PyPy 31.720.6780,0801008  14% 15% 55% 53% 47% 40% 46% 1%
Python 34.720.6599,300894  91% 97% 91% 91% 85% 92% 91% 93%
 k-nucleotide 
PyPy 30.100.10?594  0% 100% 0% 0% 0% 9% 0% 0% †
Python 30.080.06?801  57% 50% 14% 0% 25% 17% 29% 17% †
 iobench 
PyPy 35.295.2974,204367  100% 0% 0% 1% 0% 0% 2% 0%
Python 32.993.0310,512367  1% 2% 0% 0% 100% 0% 0% 1%
 reverse-complement 
PyPy 30.060.06?458  0% 0% 0% 0% 0% 0% 0% 100% †
Python 30.020.02?458  33% 0% 100% 0% 0% 0% 0% 0% †
 regex-dna 
PyPy 30.160.16?524  100% 6% 0% 0% 12% 0% 6% 0%
Python 30.040.04?524  0% 100% 0% 0% 25% 0% 0% 20%
 binary-trees 
PyPy 32.280.90128,080741  63% 24% 24% 26% 27% 27% 36% 37%
Python 31.030.223,584741  81% 62% 55% 57% 64% 57% 62% 57%
 pidigits 
PyPy 32.842.8475,604322  76% 2% 0% 0% 1% 24% 1% 0% †
Python 30.030.03?379  25% 0% 100% 0% 0% 0% 33% 25% †
 mandelbrot 
No program
Python 325.423.34317,3003852  95% 99% 94% 96% 95% 94% 96% 96%
 templates 
No program
Python 30.570.5820,176322  100% 0% 0% 2% 0% 3% 0% 2%
 fibonacci 
PyPy 30.160.16?182  94% 0% 6% 6% 0% 0% 0% 0%
No program
 chameneos-redux 
No program
Python 3275.05194.3116,7481191  11% 14% 14% 14% 17% 21% 18% 22%
 binary-trees-redux
   No programs

† possible mismatch - one-core program compared to multi-core program.

 4 : Are there other PyPy 3 programs for these benchmarks?

Remember - those are just the fastest PyPy 3 and Python 3 programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for PyPy 3.

Maybe one of those other PyPy 3 programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest PyPy 3 and Python 3 programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 PyPy 3 : the new Python JIT 

Revised BSD license

  Home   Conclusions   License   Play