Compare the performance of Python CPython programs against some other language implementation.

For more information about the Python implementation we measured see ↓ about Python CPython.

Compare to:

 Python CPython comparison summary


1/2 1/3 1/4 … Python CPython is better
Programs Time Memory Use Source Size Reduced N
chameneos-redux  No Perl
reverse-complement1/5±±
spectral-norm1/57±
binary-trees1/5±±
mandelbrot1/21/16±
regex-dna1/21/3±
fasta±±±
n-body±±±
pidigits±2±
fannkuch±2±
k-nucleotide21/2±

± look at the measurements

 Python CPython comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 reverse-complement 
Python CPython #37.64538,3402887.64  100% 0% 0% 0%
Perl #238.22422,91229838.22  0% 99% 0% 0%
 spectral-norm 
Python CPython #51,150.5220,744428296.88  95% 96% 97% 100%
Perl1,446.022,7963551,445.94  87% 0% 13% 0%
 binary-trees 
Python CPython #61,045.71674,488626296.77  85% 85% 86% 97%
Perl #21,343.31643,5045411,343.26  100% 0% 0% 0%
 mandelbrot 
Python CPython #53,115.9818,824425779.18  100% 100% 100% 100%
Perl5,489.72300,1605501,432.43  96% 95% 96% 95%
 regex-dna 
Python CPython29.22191,15634229.22  0% 100% 0% 0%
Perl #446.45562,05644046.45  0% 100% 0% 0%
 fasta 
Python CPython #2234.292,852779234.32  4% 26% 37% 34%
Perl #4347.132,128934347.13  0% 100% 0% 0%
 n-body 
Python CPython #41,508.592,94011051,508.52  100% 0% 0% 0%
Perl1,930.062,14011401,929.94  0% 100% 0% 0%
 pidigits 
Python CPython #37.405,5284767.40  0% 0% 100% 0%
Perl #28.083,3043858.08  100% 0% 0% 0%
 fannkuch 
Python CPython #24,355.802,8123874,355.54  100% 0% 0% 0%
Perl4,358.001,6683484,357.75  0% 0% 100% 0%
 k-nucleotide 
Python CPython559.17439,248475561.06  0% 0% 99% 0%
Perl #2246.72709,252359249.79  1% 1% 98% 0%

 about Python CPython

Python 2.6.3

Online book: Dive Into Python

Home Page: http://www.python.org/

Download: http://www.python.org/download/

Revised BSD license