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

† 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  100% 6% 0% 0% †
Python 332.3823.8413,176448  33% 38% 32% 29% †
 n-body 
PyPy 34.604.8268,9401315  3% 99% 5% 3% †
Python 344.7145.218,8281315  37% 30% 44% 11% †
 fib50 
PyPy 30.790.7972,656136  100% 5% 1% 3%
Python 33.433.558,384136  1% 76% 2% 26%
 richards 
PyPy 30.280.281,1402434  0% 7% 96% 4%
Python 31.151.158,9322434  2% 10% 100% 3%
 meteor-contest 
PyPy 30.890.9475,9801443  1% 99% 2% 2%
Python 33.353.358,8401443  81% 6% 20% 1%
 jsonbench 
PyPy 31.151.1776,476322  1% 7% 98% 3%
Python 33.553.5612,296322  1% 7% 3% 100%
 fannkuch-redux 
PyPy 33.261.3380,5961271  55% 58% 55% 88%
Python 313.123.5053,336894  99% 97% 97% 91%
 fibonacci 
PyPy 30.270.271,020182  0% 4% 0% 100%
Python 30.670.689,136182  100% 9% 3% 3%
 pystone 
PyPy 30.120.12?2303  8% 33% 100% 0% †
Python 30.280.291,9402303  3% 4% 3% 97% †
 fasta 
PyPy 31.901.9269,7521698  52% 6% 48% 2% †
Python 38.994.4596,8682016  56% 55% 52% 47% †
 chameneos-redux 
PyPy 3185.5097.8267,6121191  43% 50% 38% 47%
Python 3331.68177.208,8881191  49% 54% 48% 51%
 fasta-redux 
PyPy 30.230.231,1401115  0% 5% 100% 4%
Python 30.290.291,8881115  3% 4% 0% 97%
 k-nucleotide 
PyPy 30.140.14?594  0% 7% 7% 100%
Python 30.130.13?594  0% 8% 0% 100%
 binary-trees 
PyPy 32.061.07139,660741  76% 41% 38% 49%
Python 33.220.9660,196741  85% 88% 91% 86%
 spectral-norm 
PyPy 30.200.211,140594  5% 100% 5% 0% †
Python 30.180.18?394  95% 17% 21% 6% †
 iobench 
PyPy 311.1611.2377,660367  1% 13% 1% 92%
Python 36.126.128,408367  1% 6% 1% 100%
 reverse-complement 
PyPy 30.080.09?458  0% 0% 100% 0% †
Python 30.020.02?449  100% 0% 0% 33% †
 templates 
PyPy 34.134.16112,664322  2% 10% 100% 1%
Python 31.131.1320,156322  1% 11% 100% 1%
 regex-dna 
PyPy 30.220.221,116524  5% 9% 5% 100%
Python 30.050.05?524  0% 17% 100% 0%
 pidigits 
PyPy 33.543.7379,340322  70% 97% 68% 39%
Python 30.040.05?379  60% 100% 80% 67%
 mandelbrot 
No program
Python 378.4320.47196,0883832  98% 99% 99% 97%
 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