Python Interpreters Benchmarks
x64 ArchLinux : Intel® i5-7200U®

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
 thread-ring †1/144 ±
 n-body1/8 ±
 fib501/4 ±
 richards1/3 ±
 meteor-contest1/3 ±
 fannkuch-redux1/3 ±
 jsonbench1/2 ±
 fibonacci1/2 ±
 pystone †1/2 ±
 fasta †1/2 ±
 chameneos-redux1/2 ±
 fasta-redux± ±
 binary-trees±±
 spectral-norm †±?
 k-nucleotide †?±
 iobench † ±
 regex-dna?±
 reverse-complement †?
 templates ±
 pidigits †112×?±
 PyPy 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/1441/1441/31/2112×

† 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
 thread-ring 
PyPy 30.150.17?407  0% 6% 0% 89% †
Python 333.8824.7313,388448  35% 31% 25% 33% †
 n-body 
PyPy 34.704.7267,9641315  5% 1% 100% 2%
Python 340.0140.049,0601315  6% 100% 1% 1%
 fib50 
PyPy 30.790.8571,708136  98% 5% 2% 2%
Python 33.253.258,476136  6% 2% 100% 1%
 richards 
PyPy 30.250.271,0402434  14% 93% 0% 4%
Python 30.880.889,0682434  8% 100% 2% 1%
 meteor-contest 
PyPy 30.950.9675,6761443  9% 8% 5% 98%
Python 33.043.049,5081443  6% 1% 1% 100%
 fannkuch-redux 
PyPy 33.401.2580,5041271  97% 63% 64% 60%
Python 311.993.1912,420894  98% 94% 96% 96%
 jsonbench 
PyPy 31.201.2875,924322  94% 2% 5% 7%
Python 33.183.1812,528322  7% 1% 2% 99%
 fibonacci 
PyPy 30.270.291,028182  10% 7% 93% 4%
Python 30.680.689,456182  8% 97% 4% 1%
 pystone 
PyPy 30.110.13?2300  14% 0% 8% 85% †
Python 30.270.271,6642300  100% 17% 8% 8% †
 fasta 
PyPy 31.992.1068,2681698  99% 2% 3% 2% †
Python 37.304.0812,8322016  44% 58% 54% 34% †
 chameneos-redux 
PyPy 3195.51101.4066,0321191  49% 41% 43% 42%
Python 3340.10171.338,6801191  49% 44% 46% 43%
 fasta-redux 
PyPy 30.220.231,0521115  8% 92% 8% 0%
Python 30.280.281,6881115  7% 97% 7% 7%
 binary-trees 
PyPy 31.951.02137,688741  78% 36% 40% 41%
Python 32.980.9015,752741  91% 83% 82% 82%
 spectral-norm 
PyPy 30.200.231,036594  91% 0% 0% 0% †
Python 30.150.16?394  6% 56% 17% 69% †
 k-nucleotide 
PyPy 30.140.16?594  12% 12% 88% 6% †
Python 30.100.07?801  43% 100% 29% 0% †
 iobench 
PyPy 312.9113.2975,672367  61% 43% 2% 2% †
Python 35.405.418,888367  71% 5% 32% 100% †
 regex-dna 
PyPy 30.210.231,036524  5% 0% 4% 95%
Python 30.050.05?524  0% 0% 100% 0%
 reverse-complement 
PyPy 30.080.10?878  10% 0% 0% 80% †
Python 30.020.02?449  33% 0% 0% 100% †
 templates 
PyPy 34.084.32108,596322  90% 5% 6% 5%
Python 30.960.9716,192322  5% 2% 100% 5%
 pidigits 
PyPy 33.093.2677,728322  99% 2% 2% 1% †
Python 30.030.03?379  0% 25% 100% 0% †
 mandelbrot
   No programs
 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