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/136 ±
 n-body1/10 ±
 fib50 †1/4 ±
 richards1/4 ±
 meteor-contest1/4 ±
 fannkuch-redux1/3 ±
 fasta †1/3 ±
 fibonacci1/3 ±
 jsonbench1/3 ±
 pystone1/2 ±
 chameneos-redux± ±
 fasta-redux± ±
 binary-trees±±
 k-nucleotide †±?±
 spectral-norm?
 iobench † ±
 reverse-complement †?±
 templates ±
 regex-dna?±
 pidigits112×?±
 PyPy 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/1361/1361/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.160.16?407  0% 0% 0% 94% †
Python 327.2421.6413,344448  31% 36% 27% 34% †
 n-body 
PyPy 34.624.6467,6361315  3% 4% 3% 100%
Python 344.2944.338,7961315  7% 100% 3% 4%
 fib50 
PyPy 30.840.8571,556136  4% 100% 2% 1% †
Python 33.743.758,908136  37% 26% 33% 100% †
 richards 
PyPy 30.280.281,1002434  4% 11% 0% 100%
Python 31.121.129,0682434  6% 100% 2% 0%
 meteor-contest 
PyPy 30.950.9675,3921443  100% 3% 7% 4%
Python 33.403.468,8521443  44% 5% 64% 4%
 fannkuch-redux 
PyPy 33.311.3178,3561271  57% 57% 89% 58%
Python 312.113.6652,808894  96% 93% 93% 95%
 fasta 
PyPy 31.891.9168,8081698  3% 99% 1% 3% †
Python 310.174.9090,4482016  70% 79% 66% 51% †
 fibonacci 
PyPy 30.260.261,112182  7% 0% 7% 100%
Python 30.670.679,364182  5% 100% 6% 2%
 jsonbench 
PyPy 31.481.5075,256322  1% 3% 99% 1%
Python 33.623.8012,268322  100% 5% 4% 5%
 pystone 
PyPy 30.120.12?2303  0% 0% 100% 9%
Python 30.260.271,8082303  7% 100% 4% 0%
 chameneos-redux 
PyPy 3145.7574.3367,3281191  45% 47% 40% 45%
Python 3166.3596.308,8201191  51% 46% 41% 46%
 fasta-redux 
PyPy 30.250.251,1121115  4% 0% 4% 100%
Python 30.290.291,7761115  10% 3% 100% 3%
 binary-trees 
PyPy 32.011.05135,940741  44% 41% 79% 41%
Python 33.270.9662,884706  88% 88% 85% 94%
 k-nucleotide 
PyPy 30.140.14?594  100% 0% 7% 0% †
Python 30.120.13?594  100% 8% 14% 8% †
 spectral-norm 
PyPy 30.200.211,036594  62% 48% 29% 10%
Python 30.120.12?394  14% 100% 15% 0%
 iobench 
PyPy 319.1519.1976,896367  2% 2% 100% 4% †
Python 35.495.508,472367  25% 23% 100% 18% †
 reverse-complement 
PyPy 30.080.08?458  11% 0% 0% 89% †
Python 30.020.02?449  0% 0% 100% 33% †
 templates 
PyPy 34.374.40106,660322  2% 3% 2% 100%
Python 31.071.1119,692322  83% 26% 3% 6%
 regex-dna 
PyPy 30.220.221,116524  5% 100% 0% 9%
Python 30.050.05?524  0% 100% 0% 0%
 pidigits 
PyPy 32.983.0378,152322  100% 6% 4% 3%
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