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
 pidigits1/107 ±
 iobench †1/5 ±
 reverse-complement1/3?1/2
 regex-dna1/3?±
 jsonbench †± ±
 binary-trees±±±
 spectral-norm±?1/2
 k-nucleotide †±?±
 chameneos-redux± ±
 fasta-redux± ±
 fibonacci ±
 fasta † ±
 pystone?±
 fib50 ±
 fannkuch-redux † 
 meteor-contest † ±
 richards ±
 thread-ring †?±
 n-body † ±
 Python 3 used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/1071/107±±

† 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.04?379  0% 0% 0% 100%
PyPy 33.733.7373,676322  100% 1% 1% 0%
 iobench 
Python 35.485.498,808367  85% 9% 28% 100% †
PyPy 326.2626.2673,148367  100% 1% 1% 1% †
 reverse-complement 
Python 30.030.03?449  0% 67% 0% 0%
PyPy 30.090.09?878  0% 100% 0% 0%
 regex-dna 
Python 30.060.06?524  14% 0% 0% 88%
PyPy 30.180.18?524  0% 100% 0% 0%
 jsonbench 
Python 35.765.7812,956322  17% 91% 100% 22% †
PyPy 37.967.9677,696322  1% 100% 1% 1% †
 binary-trees 
Python 35.281.4769,124741  93% 91% 88% 90%
PyPy 33.601.6688,728741  78% 45% 47% 55%
 spectral-norm 
Python 30.140.15?394  7% 0% 100% 13%
PyPy 30.170.17?594  0% 0% 100% 0%
 k-nucleotide 
Python 30.170.17?594  12% 89% 100% 6% †
PyPy 30.150.15?594  6% 0% 0% 100% †
 chameneos-redux 
Python 3170.3092.848,9561191  38% 41% 42% 38%
PyPy 3144.9979.3462,3401191  38% 41% 37% 40%
 fasta-redux 
Python 30.390.391,8281115  3% 0% 100% 0%
PyPy 30.330.341,3081115  0% 100% 0% 3%
 fibonacci 
Python 30.790.809,636182  11% 3% 1% 100%
PyPy 30.350.361,276182  3% 3% 3% 100%
 fasta 
Python 314.996.33421,5922016  68% 78% 49% 48% †
PyPy 32.602.6065,7161698  0% 100% 0% 1% †
 pystone 
Python 30.390.391,8442303  10% 3% 100% 3%
PyPy 30.120.12?2303  0% 0% 0% 100%
 fib50 
Python 34.144.159,260136  1% 100% 2% 1%
PyPy 31.181.1867,404136  0% 1% 100% 1%
 fannkuch-redux 
Python 320.075.2855,292894  96% 95% 97% 97% †
PyPy 31.461.4663,808552  0% 1% 1% 100% †
 meteor-contest 
Python 35.205.209,6281443  6% 7% 100% 100% †
PyPy 31.161.1671,5441443  1% 2% 99% 1% †
 richards 
Python 31.651.659,2842434  50% 2% 54% 2%
PyPy 30.310.311,2682434  0% 0% 100% 3%
 thread-ring 
Python 30.940.959,352407  15% 17% 22% 99% †
PyPy 30.170.17?407  0% 100% 6% 0% †
 n-body 
Python 370.4270.449,0161315  43% 29% 62% 76% †
PyPy 38.188.1864,6081315  1% 1% 2% 100% †
 templates 
Python 31.891.9123,056322  27% 21% 90% 23%
No program
 mandelbrot 
Python 399.5932.46187,5123832  99% 99% 97% 97%
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