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-redux  No Perl
nsieve1/31/3±
binary-trees1/31/3±
regex-dna1/2±±
pidigits1/2±±
fasta±±±
recursive±±±
mandelbrot±±±
fannkuch±2±
sum-file±2±
n-body±±±
reverse-complement±±±
nsieve-bits±3±
partial-sums22±
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 #48.5735,220246  
Perl #225.45121,904290  
 binary-trees 
Python CPython #393.4116,116418  
Perl #2239.3647,936541  
 regex-dna 
Python CPython6.0420,516342  
Perl #411.8121,408431  
 pidigits 
Python CPython #32.062,928476  
Perl #23.612,532385  
 fasta 
Python CPython #2692.042,420779  
Perl #4950.041,872934  
 recursive 
Python CPython683.7414,296360  
Perl #2898.7810,836380  
 mandelbrot 
Python CPython #3323.702,420303  
Perl #2403.201,724311  
 fannkuch 
Python CPython772.842,404411  
Perl855.721,492348  
 sum-file 
Python CPython #320.752,44477  
Perl18.171,46884  
 n-body 
Python CPython #22,015.782,4401027  
Perl1,697.591,9361140  
 reverse-complement 
Python CPython #32.7349,072288  
Perl #21.9938,360298  
 nsieve-bits 
Python CPython144.4012,436288  
Perl100.184,004253  
 partial-sums 
Python CPython27.412,476395  
Perl #317.411,476389  
 k-nucleotide 
Python CPython58.4525,208475  
Perl #232.0742,816359  

 about Python CPython

Python 2.5.1

Online book: Dive Into Python

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

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

Revised BSD license