÷

 Step 1 : Are the Python CPython 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 CPython program used compared to the fastest Perl program.


 Step 2 : Are the Python CPython 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 CPython program used compared to the fastest Perl program.

 Python CPython used what fraction? used how many times more? 
Benchmark Time Memory Code Reduced N
 nsieve1/41/3±
 binary-trees1/21/2±
 regex-dna1/2±±
 fasta1/2±±
 recursive1/2±±
 mandelbrot1/2±±
 fannkuch±±±
 n-body±±
 pidigits±±±
 reverse-complement±±±
 partial-sums±±±
 sum-file±±±
 nsieve-bits±±
 k-nucleotide1/2±

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

 Step 3 : Are the Python CPython 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 CPython program are shown for comparison against measurements of the fastest Perl program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 nsieve 
Python CPython14.5382,412243  
Perl60.70242,316290  
 binary-trees 
Python CPython90.9316,024418  
Perl224.0637,588481  
 regex-dna 
Python CPython7.8819,120342  
Perl13.6625,048449  
 fasta 
Python CPython517.713,160779  
Perl850.673,156934  
 recursive 
Python CPython621.9714,896360  
Perl956.3110,812380  
 mandelbrot 
Python CPython251.143,388303  
Perl382.653,388311  
 fannkuch 
Python CPython593.143,148387  
Perl728.503,144348  
 n-body 
Python CPython1,348.843,1401027  
Perl1,567.731,9041140  
 pidigits 
Python CPython5.343,348476  
Perl6.213,144385  
 reverse-complement 
Python CPython2.3046,180288  
Perl1.9938,356298  
 partial-sums 
Python CPython18.143,168395  
Perl14.233,156389  
 sum-file 
Python CPython19.8814,92477  
Perl15.5514,91684  
 nsieve-bits 
Python CPython126.1512,416336  
Perl93.554,024253  
 k-nucleotide 
Python CPython49.6825,220475  
Perl27.5442,836359  
 chameneos-redux
Python CPythonFailed
 spectral-norm
   No program

 Measurements for all the accepted programs

 Python CPython : uncluttered imperative programming plus objects 

Python 2.5.2

Online book: Dive Into Python

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

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

Revised BSD license