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
spectral-normNo program
chameneos-reduxFailed
nsieve1/41/3±
binary-trees1/21/2±
regex-dna1/2±±
fasta1/2±±
recursive1/2±±
mandelbrot1/2±±
fannkuch±±±
n-body±2±
pidigits±±±
reverse-complement±±±
partial-sums±±±
sum-file±±±
nsieve-bits±3±
k-nucleotide21/2±

± look at the measurements

 Python CPython comparison measurements

Program & Logs CPU secs Memory KB Size B Elapsed secs ~ CPU Load
 nsieve 
Python CPython #214.5382,412243  
Perl #260.70242,316290  
 binary-trees 
Python CPython #390.9316,024418  
Perl224.0637,588481  
 regex-dna 
Python CPython7.8819,120342  
Perl #213.6625,048449  
 fasta 
Python CPython #2517.713,160779  
Perl #4850.673,156934  
 recursive 
Python CPython621.9714,896360  
Perl #2956.3110,812380  
 mandelbrot 
Python CPython #3251.143,388303  
Perl #2382.653,388311  
 fannkuch 
Python CPython #2593.143,148387  
Perl728.503,144348  
 n-body 
Python CPython #21,348.843,1401027  
Perl1,567.731,9041140  
 pidigits 
Python CPython #35.343,348476  
Perl #26.213,144385  
 reverse-complement 
Python CPython #32.3046,180288  
Perl #21.9938,356298  
 partial-sums 
Python CPython18.143,168395  
Perl #314.233,156389  
 sum-file 
Python CPython19.8814,92477  
Perl15.5514,91684  
 nsieve-bits 
Python CPython #2126.1512,416336  
Perl93.554,024253  
 k-nucleotide 
Python CPython49.6825,220475  
Perl #227.5442,836359  

 about Python CPython

Python 2.5.2

Online book: Dive Into Python

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

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

Revised BSD license