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

† 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 36.906.9158,1321315  100% 0% 0% 0%
Python 343.2343.238,8681315  0% 100% 0% 0%
 richards 
PyPy 30.210.211,3402434  5% 0% 95% 0%
Python 31.281.289,2762434  1% 0% 99% 0%
 thread-ring 
PyPy 30.100.10?407  100% 0% 0% 0%
Python 30.570.579,120407  0% 2% 0% 100%
 pystone 
PyPy 30.060.06?2303  100% 0% 0% 0%
Python 30.290.291,9442303  0% 0% 0% 100%
 meteor-contest 
PyPy 30.830.8469,0241443  0% 1% 0% 100%
Python 33.443.449,2641443  0% 50% 0% 50%
 fib50 
PyPy 30.800.8067,852136  100% 0% 0% 0%
Python 33.243.249,352136  0% 69% 0% 32%
 fannkuch-redux 
PyPy 32.890.94267,7361008  75% 74% 88% 72%
Python 312.423.3153,996894  93% 91% 98% 93%
 fibonacci 
PyPy 30.220.231,348182  0% 4% 100% 0%
Python 30.670.679,516182  1% 0% 99% 0%
 fasta 
PyPy 31.791.7960,0001698  0% 1% 0% 100% †
Python 39.234.2481,3362016  68% 90% 22% 40% †
 k-nucleotide 
PyPy 30.080.08?594  89% 0% 0% 11%
Python 30.110.11?594  0% 100% 9% 0%
 fasta-redux 
PyPy 30.200.211,3481115  100% 0% 5% 0%
Python 30.280.281,7801115  0% 100% 3% 4%
 spectral-norm 
PyPy 30.090.09?594  100% 0% 0% 0%
Python 30.120.12?394  0% 0% 100% 8%
 chameneos-redux 
PyPy 3102.9453.5859,4881191  39% 36% 33% 31%
Python 3120.8065.948,8321191  36% 34% 35% 33%
 binary-trees 
PyPy 32.270.95325,796741  67% 61% 51% 61%
Python 33.471.0259,132741  83% 82% 83% 95%
 reverse-complement 
PyPy 30.030.03?458  100% 0% 0% 0% †
Python 30.020.03?449  33% 0% 100% 0% †
 jsonbench 
PyPy 35.235.2375,588322  0% 80% 0% 20%
Python 33.613.6112,148322  0% 1% 0% 100%
 regex-dna 
PyPy 30.080.09?524  0% 0% 100% 0%
Python 30.050.05?524  0% 0% 100% 0%
 templates 
PyPy 32.992.9995,628322  0% 17% 0% 83%
Python 31.241.2421,180322  0% 0% 1% 100%
 mandelbrot 
PyPy 3212.0754.35136,7643832  99% 97% 97% 98%
Python 367.7917.28187,1363832  97% 97% 99% 99%
 iobench 
PyPy 320.3220.3267,900367  0% 100% 0% 0%
Python 33.573.578,728367  100% 0% 0% 0%
 pidigits 
PyPy 30.510.5173,760379  0% 0% 2% 98%
Python 30.030.03?379  0% 0% 0% 100%
 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