÷

 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 C# Mono 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 C# Mono program.

 Python CPython used what fraction? used how many times more? 
Benchmark Time Memory Code
 regex-dna1/61/31/2
 pidigits1/3±1/4
 partial-sums±±
 reverse-complement±1/3
 k-nucleotide1/31/2
 nsieve±
 binary-trees±1/2
 mandelbrot12×1/2
 fannkuch17×1/2±
 nsieve-bits24×±±
 fasta26×1/21/2
 recursive32×1/2±
 spectral-norm69×1/21/2
 n-body87×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 C# Mono program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 regex-dna 
Python CPython2.8823,000314  
C# Mono17.3164,708657  
 pidigits 
Python CPython0.082,164257  
C# Mono0.222,5401026  
 partial-sums 
Python CPython7.0312,680482  
C# Mono7.284,704455  
 reverse-complement 
Python CPython2.7349,072288  
C# Mono2.2027,136727  
 k-nucleotide 
Python CPython58.4525,208475  
C# Mono18.5268,0641012  
 nsieve 
Python CPython7.3542,400278  
C# Mono2.289,604341  
 binary-trees 
Python CPython66.9616,172377  
C# Mono8.2514,584610  
 mandelbrot 
Python CPython5.5929,632312  
C# Mono0.464,644484  
 fannkuch 
Python CPython5.382,404411  
C# Mono0.324,624549  
 nsieve-bits 
Python CPython34.974,936288  
C# Mono1.495,252363  
 fasta 
Python CPython692.042,420779  
C# Mono26.234,6561180  
 recursive 
Python CPython22.373,048360  
C# Mono0.694,624435  
 spectral-norm 
Python CPython3,261.322,900282  
C# Mono47.484,352459  
 n-body 
Python CPython2,015.782,4401027  
C# Mono23.205,0721410  
 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 C# Mono 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 C# Mono 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