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