vs

 1 : Are the Python 3 programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest Python 3 program used compared to the fastest PyPy 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 Python 3 programs faster? Approximately.

Each table row shows, for one named benchmark, how much the fastest Python 3 program used compared to the fastest PyPy 3 program.

(Memory use is only compared for tasks that require memory to be allocated.)

 Python 3 used what fraction? used how many times more? 
Benchmark Time Memory Code
 pidigits †1/19 ±
 iobench1/6 ±
 jsonbench1/3 ±
 regex-dna1/2?±
 reverse-complement †1/2?±
 fasta-redux †± ±
 spectral-norm±?1/2
 chameneos-redux± ±
 binary-trees±1/4±
 k-nucleotide±?±
 fibonacci † ±
 fib50 † ±
 fasta † ±
 meteor-contest † ±
 pystone †?±
 fannkuch-redux ±
 richards ±
 thread-ring?±
 n-body ±
 Python 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/191/191/2±

† possible mismatch - one-core program compared to multi-core program.

± read the measurements and then read the program source code.

 3 : Are the Python 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 Python 3 program are shown for comparison against measurements of the fastest PyPy 3 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 pidigits 
Python 30.030.03?379  100% 0% 25% 0% †
PyPy 30.620.6350,280379  3% 10% 100% 3% †
 iobench 
Python 34.774.778,588367  0% 4% 1% 100%
PyPy 326.6426.6545,840367  3% 1% 2% 100%
 jsonbench 
Python 34.734.7412,472322  0% 6% 2% 96%
PyPy 313.3213.3354,576322  4% 3% 100% 2%
 regex-dna 
Python 30.060.06?524  0% 100% 0% 0%
PyPy 30.100.11?524  100% 9% 0% 9%
 reverse-complement 
Python 30.030.03?458  0% 100% 25% 0% †
PyPy 30.040.04?458  0% 0% 0% 100% †
 fasta-redux 
Python 30.380.391,6801115  3% 100% 0% 3% †
PyPy 30.570.5747,8961115  48% 42% 100% 39% †
 spectral-norm 
Python 30.130.13?394  0% 0% 100% 0%
PyPy 30.130.13?594  0% 8% 100% 0%
 chameneos-redux 
Python 3175.2995.248,8201191  31% 32% 49% 50%
PyPy 3149.7780.5639,2161191  37% 33% 44% 49%
 binary-trees 
Python 35.391.4768,592741  95% 92% 94% 91%
PyPy 32.791.11269,188741  63% 60% 75% 59%
 k-nucleotide 
Python 30.140.15?594  0% 100% 0% 0%
PyPy 30.100.10?594  0% 100% 9% 0%
 fibonacci 
Python 30.840.859,448182  4% 2% 100% 5% †
PyPy 30.370.371,432182  39% 100% 34% 32% †
 fib50 
Python 34.274.279,048136  2% 1% 100% 2% †
PyPy 31.861.8645,820136  49% 97% 65% 29% †
 fasta 
Python 316.517.24421,0882016  61% 80% 52% 55% †
PyPy 32.252.2640,6481698  7% 100% 3% 1% †
 meteor-contest 
Python 34.554.558,7081443  0% 100% 0% 0% †
PyPy 31.191.1947,6921540  12% 8% 100% 7% †
 pystone 
Python 30.370.371,7442303  3% 0% 100% 0% †
PyPy 30.080.09?2303  13% 11% 0% 100% †
 fannkuch-redux 
Python 320.255.3755,580894  95% 97% 95% 96%
PyPy 34.151.21202,3601271  88% 88% 86% 93%
 richards 
Python 31.611.628,7162434  5% 100% 0% 1%
PyPy 30.260.261,4322434  100% 0% 0% 0%
 thread-ring 
Python 30.810.819,096407  0% 100% 10% 2%
PyPy 30.120.13?407  7% 100% 0% 0%
 n-body 
Python 360.1960.208,8761315  1% 2% 1% 100%
PyPy 37.987.9837,9441315  4% 1% 2% 100%
 templates 
Python 31.381.3916,080322  1% 99% 0% 1%
No program
 mandelbrot 
Python 398.7025.71184,9483832  97% 98% 98% 99%
No program
 binary-trees-redux
   No programs

† possible mismatch - one-core program compared to multi-core program.

 4 : Are there other Python 3 programs for these benchmarks?

Remember - those are just the fastest Python 3 and PyPy 3 programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Python 3.

Maybe one of those other Python 3 programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Python 3 and PyPy 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.

 Python 3 : the new Python 

Python 3.3.1 (default, Apr 11 2013, 12:45:45)
[GCC 4.7.2] on linux

"3.x is the newest branch of Python and the intended future of the language."

"Van Rossum: Python is not too slow"

Home Page: Python 3.3.1 was released on April 7th, 2013.

Revised BSD license

  Home   Conclusions   License   Play