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

† 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.17?407  0% 100% 0% 0% †
Python 334.1324.1813,204448  23% 37% 20% 48% †
 n-body 
PyPy 34.574.5968,3401315  5% 1% 0% 100%
Python 346.5346.908,8121315  21% 0% 83% 1%
 fib50 
PyPy 30.770.7772,360136  5% 99% 1% 0%
Python 33.393.468,396136  43% 1% 59% 1%
 richards 
PyPy 30.280.289562434  7% 4% 97% 0%
Python 31.091.109,0082434  5% 0% 0% 100%
 meteor-contest 
PyPy 30.910.9175,9721443  5% 0% 1% 100%
Python 33.203.218,9201443  5% 100% 1% 1%
 jsonbench 
PyPy 31.211.2375,232322  6% 1% 98% 2%
Python 33.293.2912,396322  5% 0% 1% 100%
 fannkuch-redux 
PyPy 33.331.3179,3241271  59% 92% 54% 55%
Python 313.033.4448,036894  97% 99% 91% 99%
 fibonacci 
PyPy 30.270.281,056182  100% 0% 0% 4%
Python 30.680.689,316182  6% 0% 100% 0%
 fasta 
PyPy 31.972.0868,9281698  99% 1% 1% 0% †
Python 37.824.22104,0842016  50% 75% 56% 10% †
 chameneos-redux 
PyPy 3195.47101.3667,9641191  50% 36% 43% 41%
Python 3353.29175.808,9561191  48% 40% 47% 47%
 fasta-redux 
PyPy 30.240.249681115  8% 0% 0% 100%
Python 30.270.271,7801115  11% 0% 0% 100%
 binary-trees 
PyPy 32.051.08138,904741  40% 76% 38% 44%
Python 33.200.9658,724741  86% 91% 86% 83%
 spectral-norm 
PyPy 30.200.211,092594  0% 5% 5% 100%
Python 30.140.15?394  13% 100% 0% 0%
 k-nucleotide 
PyPy 30.140.14?594  0% 0% 7% 100% †
Python 30.090.07?801  14% 14% 14% 88% †
 iobench 
PyPy 312.4812.5176,916367  5% 0% 80% 21%
Python 35.535.539,000367  5% 94% 0% 6%
 reverse-complement 
PyPy 30.090.09?449  10% 100% 0% 0%
Python 30.020.03?449  0% 100% 0% 0%
 regex-dna 
PyPy 30.230.231,000524  4% 0% 100% 0%
Python 30.050.06?524  17% 100% 0% 0%
 templates 
PyPy 34.294.42110,616322  54% 1% 48% 1%
Python 31.031.0319,980322  8% 100% 1% 1%
 pidigits 
PyPy 32.953.1278,516322  99% 1% 0% 1%
Python 30.030.03?379  100% 0% 0% 0%
 pystone 
PyPy 30.120.12?2303  8% 92% 0% 0%
No program
 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