vs

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

Each chart bar shows, for one unidentified benchmark, how much the fastest PyPy program used compared to the fastest Python 2 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 programs faster? Approximately.

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

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

 PyPy used what fraction? used how many times more? 
Benchmark Time Memory Code
 n-body †1/9 ±
 richards †1/9 ±
 thread-ring1/7 ±
 fannkuch-redux1/6 ±
 pystone1/5 ±
 fib501/5 ±
 jsonbench1/4 ±
 meteor-contest1/4 ±
 fasta1/3 ±
 fibonacci1/3 ±
 iobench1/2 ±
 k-nucleotide1/2?±
 binary-trees±±
 chameneos-redux± ±
 mandelbrot± ±
 spectral-norm±?
 regex-dna?±
 templates † ±
 pidigits †30×?±
 PyPy used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/91/91/51/3±30×

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

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

 3 : Are the PyPy 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 program are shown for comparison against measurements of the fastest Python 2 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 n-body 
PyPy8.028.0266,7601337  1% 3% 100% 1% †
Python 275.9976.066,7121337  14% 7% 9% 95% †
 richards 
PyPy0.230.231,4762423  0% 0% 100% 0% †
Python 21.971.976,3242423  16% 43% 100% 34% †
 thread-ring 
PyPy0.110.12?407  8% 0% 100% 0%
Python 20.770.776,432407  4% 0% 4% 100%
 fannkuch-redux 
PyPy4.181.20256,8241009  88% 88% 93% 87%
Python 228.107.2546,6161009  97% 98% 99% 99%
 pystone 
PyPy0.070.07?2301  0% 100% 0% 0%
Python 20.360.361,4562301  3% 6% 100% 10%
 fib50 
PyPy0.850.8575,956136  88% 1% 12% 2%
Python 24.044.0537,928136  3% 4% 2% 100%
 jsonbench 
PyPy1.661.6782,048322  100% 0% 1% 1%
Python 26.986.9815,396322  2% 3% 1% 100%
 meteor-contest 
PyPy0.990.9977,6241485  0% 0% 0% 100%
Python 23.773.776,6001485  100% 5% 0% 3%
 fasta 
PyPy3.063.0776,404900  5% 1% 100% 1%
Python 210.1110.1112,696900  2% 100% 2% 4%
 fibonacci 
PyPy0.260.271,484181  4% 100% 0% 0%
Python 20.780.796,716181  9% 100% 3% 4%
 iobench 
PyPy16.9116.9275,068370  10% 2% 92% 2%
Python 238.8238.836,576370  3% 11% 95% 3%
 k-nucleotide 
PyPy0.070.07?593  88% 0% 0% 0%
Python 20.120.12?593  100% 17% 0% 0%
 binary-trees 
PyPy2.891.12319,408743  76% 76% 81% 71%
Python 25.991.6459,252743  91% 98% 91% 92%
 chameneos-redux 
PyPy142.5276.5565,3081192  31% 28% 48% 52%
Python 2166.7992.188,4121192  35% 30% 48% 50%
 mandelbrot 
PyPy147.2338.002,027,0843832  99% 98% 98% 97%
Python 2101.2628.56166,3123832  99% 96% 97% 99%
 spectral-norm 
PyPy0.110.11?594  100% 0% 0% 0%
Python 20.080.08?394  0% 0% 100% 0%
 regex-dna 
PyPy0.220.211,512612  15% 16% 64% 18%
Python 20.090.14?612  8% 8% 31% 23%
 templates 
PyPy3.153.1592,420307  0% 100% 1% 1% †
Python 21.611.6216,812307  89% 11% 17% 5% †
 pidigits 
PyPy0.700.7091,592378  1% 100% 7% 1% †
Python 20.020.02?378  0% 33% 100% 0% †
 fasta-redux 
PyPy0.260.271,5121115  100% 0% 0% 4%
No program
 reverse-complement
   No programs
 binary-trees-redux
   No programs

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

 4 : Are there other PyPy programs for these benchmarks?

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

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

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest PyPy and Python 2 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 : the old PyPy 

 

Revised BSD license

  Home   Conclusions   License   Play