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/8 ±
 richards1/6 ±
 thread-ring1/5 ±
 meteor-contest1/4 ±
 fib501/4 ±
 fannkuch-redux †1/3 1/2
 pystone1/3 ±
 fasta †1/2 ±
 fibonacci1/2 ±
 fasta-redux± ±
 chameneos-redux± ±
 k-nucleotide±?±
 binary-trees±±±
 spectral-norm±?
 jsonbench ±
 regex-dna?±
 reverse-complement?
 iobench ±
 pidigits98×?±
 PyPy 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/81/81/4±±98×

† 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 38.188.1864,6081315  1% 1% 2% 100%
Python 362.4362.438,8041315  0% 0% 0% 100%
 richards 
PyPy 30.310.311,2682434  0% 0% 100% 3%
Python 31.761.769,1802434  100% 0% 0% 0%
 thread-ring 
PyPy 30.170.17?407  0% 100% 6% 0%
Python 30.820.829,068407  99% 0% 2% 1%
 meteor-contest 
PyPy 31.161.1671,5441443  1% 2% 99% 1%
Python 34.644.649,0881443  0% 0% 0% 100%
 fib50 
PyPy 31.181.1867,404136  0% 1% 100% 1%
Python 34.344.349,196136  0% 0% 0% 100%
 fannkuch-redux 
PyPy 31.461.4663,808552  0% 1% 1% 100% †
Python 319.655.0855,660894  96% 96% 98% 97% †
 pystone 
PyPy 30.120.12?2303  0% 0% 0% 100%
Python 30.380.391,7482303  0% 0% 3% 100%
 fasta 
PyPy 32.602.6065,7161698  0% 100% 0% 1% †
Python 315.296.27421,2482016  64% 82% 58% 41% †
 fibonacci 
PyPy 30.350.361,276182  3% 3% 3% 100%
Python 30.800.809,372182  0% 100% 0% 1%
 fasta-redux 
PyPy 30.330.341,3081115  0% 100% 0% 3%
Python 30.400.408721115  100% 0% 3% 0%
 chameneos-redux 
PyPy 3144.9979.3462,3401191  38% 41% 37% 40%
Python 3159.8591.858,8561191  38% 35% 36% 38%
 k-nucleotide 
PyPy 30.150.15?594  6% 0% 0% 100%
Python 30.150.15?594  0% 0% 6% 100%
 binary-trees 
PyPy 33.601.6688,728741  78% 45% 47% 55%
Python 35.401.4865,892741  90% 93% 90% 94%
 spectral-norm 
PyPy 30.170.17?594  0% 0% 100% 0%
Python 30.140.15?394  0% 100% 0% 0%
 jsonbench 
PyPy 37.967.9677,696322  1% 100% 1% 1%
Python 34.894.8912,812322  1% 0% 100% 0%
 regex-dna 
PyPy 30.180.18?524  0% 100% 0% 0%
Python 30.060.06?524  86% 25% 0% 0%
 reverse-complement 
PyPy 30.090.09?878  0% 100% 0% 0%
Python 30.030.03?449  0% 75% 0% 0%
 iobench 
PyPy 326.2626.2673,148367  100% 1% 1% 1%
Python 34.744.748,852367  0% 100% 0% 0%
 pidigits 
PyPy 33.733.7373,676322  100% 1% 1% 0%
Python 30.040.04?379  100% 0% 0% 0%
 templates 
No program
Python 31.591.6225,476322  85% 1% 2% 12%
 mandelbrot 
No program
Python 3100.2025.63191,1043832  99% 99% 97% 97%
 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