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/156 ±
 n-body1/6 ±
 richards1/5 ±
 fib50 †1/4 ±
 meteor-contest1/4 ±
 fannkuch-redux1/3 ±
 pystone †1/3 ±
 fasta †1/3 ±
 fibonacci1/2 ±
 jsonbench1/2 ±
 chameneos-redux± ±
 k-nucleotide †±?±
 fasta-redux± ±
 spectral-norm †±?
 binary-trees±±±
 reverse-complement †?
 regex-dna?±
 templates ±
 iobench † ±
 pidigits109×?±
 PyPy 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/1561/1561/31/2109×

† 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.140.14?407  7% 0% 93% 0% †
Python 327.2421.6413,344448  31% 36% 27% 34% †
 n-body 
PyPy 36.636.9566,8721315  100% 1% 2% 1%
Python 344.2944.338,7961315  7% 100% 3% 4%
 richards 
PyPy 30.240.241,3122434  8% 100% 0% 4%
Python 31.121.129,0682434  6% 100% 2% 0%
 fib50 
PyPy 30.840.8470,260136  6% 0% 2% 100% †
Python 33.743.758,908136  37% 26% 33% 100% †
 meteor-contest 
PyPy 30.860.9073,2841443  100% 0% 2% 0%
Python 33.403.468,8521443  44% 5% 64% 4%
 fannkuch-redux 
PyPy 33.211.2777,3001008  59% 57% 87% 58%
Python 312.113.6652,808894  96% 93% 93% 95%
 pystone 
PyPy 30.100.10?2303  18% 0% 9% 100% †
Python 30.260.271,8082303  7% 100% 4% 0% †
 fasta 
PyPy 31.861.8867,5201698  8% 4% 1% 99% †
Python 310.174.9090,4482016  70% 79% 66% 51% †
 fibonacci 
PyPy 30.260.271,312182  100% 0% 4% 4%
Python 30.670.679,364182  5% 100% 6% 2%
 jsonbench 
PyPy 31.511.6081,204322  99% 1% 1% 1%
Python 33.623.8012,268322  100% 5% 4% 5%
 chameneos-redux 
PyPy 3146.9981.1663,8641191  46% 39% 43% 39%
Python 3166.3596.308,8201191  51% 46% 41% 46%
 k-nucleotide 
PyPy 30.110.11?594  0% 92% 0% 0% †
Python 30.120.13?594  100% 8% 14% 8% †
 fasta-redux 
PyPy 30.260.261,3281115  4% 0% 4% 100%
Python 30.290.291,7761115  10% 3% 100% 3%
 spectral-norm 
PyPy 30.130.13?594  93% 0% 0% 0% †
Python 30.120.12?394  14% 100% 15% 0% †
 binary-trees 
PyPy 32.321.2689,088706  79% 59% 53% 57%
Python 33.270.9662,884706  88% 88% 85% 94%
 reverse-complement 
PyPy 30.070.07?878  0% 100% 0% 0% †
Python 30.020.02?449  0% 0% 100% 33% †
 regex-dna 
PyPy 30.140.14?524  13% 0% 0% 93%
Python 30.050.05?524  0% 100% 0% 0%
 templates 
PyPy 33.293.34108,424322  18% 86% 2% 1%
Python 31.071.1119,692322  83% 26% 3% 6%
 iobench 
PyPy 320.1020.1574,420367  6% 1% 100% 0% †
Python 35.495.508,472367  25% 23% 100% 18% †
 pidigits 
PyPy 32.922.9475,856322  5% 1% 1% 99%
Python 30.030.03?379  0% 0% 100% 0%
 mandelbrot 
No program
Python 374.0819.52181,9363832  98% 98% 98% 99%
 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