÷

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

This chart shows 3 comparisons - Time-used, Memory-used and Code-used.

Each chart bar shows, for one unidentified benchmark, how much the fastest Python 3 program used compared to the fastest Python CPython program.


 2 : Are the Python 3 programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used.

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

 Python 3 used what fraction? used how many times more? 
Benchmark Time Memory Code Reduced N
 binary-trees1/2±±
 n-body±±±
 chameneos-redux±±±
 regex-dna±±
 fannkuch±±±
 spectral-norm±±±
 fasta±±±
 k-nucleotide±±
 mandelbrot1/3
 reverse-complement±
 pidigits±±

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

 3 : Are the Python 3 programs faster? Measurements.

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.

For each named benchmark, measurements of the fastest Python 3 program are shown for comparison against measurements of the fastest Python CPython program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 binary-trees 
Python 3727.62195.42695,172626  92% 91% 92% 97%
Python CPython1,045.71296.77674,488626  85% 85% 86% 97%
 n-body 
Python 31,522.881,522.814,0001106  0% 0% 100% 0%
Python CPython1,508.591,508.522,9401105  100% 0% 0% 0%
 chameneos-redux 
Python 3308.50248.124,148866  30% 30% 31% 30%
Python CPython288.54237.533,020869  39% 33% 17% 27%
 regex-dna 
Python 332.3632.36382,112349  100% 0% 0% 0%
Python CPython29.2229.22191,156342  0% 100% 0% 0%
 fannkuch 
Python 34,887.634,887.363,964400  21% 0% 0% 79%
Python CPython4,355.804,355.542,812387  100% 0% 0% 0%
 spectral-norm 
Python 31,382.96351.3425,384437  98% 98% 99% 99%
Python CPython1,150.52296.8820,744428  95% 96% 97% 100%
 fasta 
Python 3294.57294.604,004788  1% 27% 73% 0%
Python CPython234.29234.322,852779  4% 26% 37% 34%
 k-nucleotide 
Python 3617.29204.52842,860577  77% 54% 94% 72%
Python CPython415.27144.14439,968520  56% 88% 50% 96%
 mandelbrot 
Python 33,278.731,367.055,504777  47% 100% 47% 47%
Python CPython3,115.98779.1818,824425  100% 100% 100% 100%
 reverse-complement 
Python 331.8331.831,021,976294  0% 100% 0% 0%
Python CPython7.647.64538,340288  100% 0% 0% 0%
 pidigits 
Python 336.5736.574,620437  0% 0% 100% 0%
Python CPython7.407.405,528476  0% 0% 100% 0%

 Python 3 : the new Python 

Python 3.1.1 (r311:74480, Aug 24 2009, 12:09:28)
[GCC 4.3.3] on linux2

A new version of the Python "language that is incompatible with the 2.x line of releases".

Home Page: Python 3.1

Revised BSD license