÷

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

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

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 ~ speed and size.

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
 pidigits1/7±±
 binary-trees1/41/3±
 nsieve1/31/3±
 mandelbrot1/319×±
 partial-sums1/2±
 recursive1/2±±
 spectral-norm±±±
 fasta±±±
 fannkuch±±
 n-body±±±
 reverse-complement±±±
 nsieve-bits±±
 k-nucleotide1/2±
 regex-dna±1/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 ~ speed and size.

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
 pidigits 
Python CPython0.082,164257  
Perl0.542,404385  
 binary-trees 
Python CPython66.9616,172377  
Perl239.3647,936541  
 nsieve 
Python CPython7.3542,400278  
Perl25.45121,904290  
 mandelbrot 
Python CPython5.5929,632312  
Perl15.931,532311  
 partial-sums 
Python CPython7.0312,680482  
Perl17.411,476389  
 recursive 
Python CPython22.373,048360  
Perl36.282,080380  
 spectral-norm 
Python CPython3,261.322,900282  
Perl4,089.082,468334  
 fasta 
Python CPython692.042,420779  
Perl773.421,856791  
 fannkuch 
Python CPython5.382,404411  
Perl5.811,492348  
 n-body 
Python CPython2,015.782,4401027  
Perl1,697.591,9361140  
 reverse-complement 
Python CPython2.7349,072288  
Perl1.9938,360298  
 nsieve-bits 
Python CPython34.974,936288  
Perl24.212,132253  
 k-nucleotide 
Python CPython58.4525,208475  
Perl32.0742,816359  
 regex-dna 
Python CPython2.8823,000314  
Perl1.2322,120471  
 chameneos-redux 
Python CPython2.732,580866  
No program

 Step 4 : Are there other Python CPython programs for these benchmarks?

Remember - those are just the fastest Python CPython and Perl programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Python CPython.

Maybe one of those other Python CPython programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Python CPython and Perl programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 Python CPython : uncluttered imperative programming plus objects 

Python 2.5.1

Online book: Dive Into Python

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

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

Revised BSD license

  Home   Flawed   Fastest   License   Help