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

† 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.926.9266,7841315  0% 100% 0% 1%
Python 343.8943.898,7801315  11% 1% 89% 0%
 richards 
PyPy 30.250.251,3602434  4% 4% 100% 0%
Python 31.251.259,3722434  100% 0% 0% 0%
 thread-ring 
PyPy 30.140.14?407  0% 100% 0% 0%
Python 30.570.579,100407  0% 100% 0% 2%
 fib50 
PyPy 30.840.8469,232136  0% 1% 0% 100%
Python 33.303.309,148136  0% 100% 0% 0%
 meteor-contest 
PyPy 30.870.8774,1361443  100% 0% 0% 0%
Python 33.433.439,0521443  2% 100% 2% 1%
 pystone 
PyPy 30.100.10?2303  0% 0% 100% 0%
Python 30.290.291,8642303  0% 0% 3% 100%
 fannkuch-redux 
PyPy 33.161.1776,2001008  59% 59% 95% 59%
Python 312.613.2955,084894  95% 96% 95% 98%
 fibonacci 
PyPy 30.260.271,364182  100% 0% 4% 0%
Python 30.670.679,756182  100% 0% 0% 1%
 fasta 
PyPy 31.901.9066,7361698  69% 0% 31% 0% †
Python 39.494.2993,1562016  78% 54% 46% 48% †
 chameneos-redux 
PyPy 3105.5355.9166,0041191  35% 39% 37% 39%
Python 3121.2567.529,0961191  35% 38% 36% 38%
 fasta-redux 
PyPy 30.240.241,3561115  0% 0% 100% 0%
Python 30.280.281,9521115  100% 0% 3% 0%
 spectral-norm 
PyPy 30.130.13?594  7% 0% 0% 100%
Python 30.120.12?394  8% 0% 100% 0%
 binary-trees 
PyPy 32.641.2390,144706  57% 78% 41% 43%
Python 33.461.0460,120741  96% 83% 82% 80%
 k-nucleotide 
PyPy 30.140.15?594  7% 43% 21% 100% †
Python 30.110.11?594  0% 100% 0% 0% †
 jsonbench 
PyPy 35.595.6080,808322  66% 7% 38% 5%
Python 33.593.5912,456322  1% 100% 1% 0%
 templates 
PyPy 33.303.30102,784322  1% 1% 1% 100%
Python 31.151.1520,920322  100% 0% 0% 0%
 reverse-complement 
PyPy 30.070.07?458  0% 100% 0% 0%
Python 30.020.02?449  0% 0% 67% 0%
 regex-dna 
PyPy 30.150.15?524  0% 0% 100% 0%
Python 30.050.05?524  100% 0% 0% 0%
 iobench 
PyPy 320.0920.0974,992367  1% 1% 100% 0%
Python 33.603.618,808367  1% 0% 100% 0%
 pidigits 
PyPy 32.902.9075,812322  0% 0% 100% 0%
Python 30.030.03?379  0% 0% 100% 0%
 mandelbrot 
No program
Python 372.4318.60187,5003832  97% 97% 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