÷

 Are the Python CPython programs faster?

Do the Python CPython programs use optimized assembly code libraries? Are they small simple programs or very optimized programs? Do the Python CPython programs use a fraction of the time used by other programs or do they use several times more?


 Python CPython used what fraction? used how many times more? 
Programs Time Memory Code Reduced N
↓ regex-dna1/41/61/2
↓ pidigits±1/21/2
↓ reverse-complement±1/3
↓ sum-file1/21/3
↓ k-nucleotide1/31/2
↓ nsieve±
↓ partial-sums1/2±
↓ binary-trees11×±±
↓ nsieve-bits19×±
↓ fasta26×1/21/2
↓ fannkuch41×1/2±
↓ mandelbrot45×1/21/2
↓ recursive74×±
↓ n-body87×1/2±

± look at the measurements and then look at the programs.

 Are the Python CPython programs faster?

Program & Logs CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 regex-dna 
Python CPython6.0420,516342  
C# Mono25.11124,284607  
 pidigits 
Python CPython2.062,928476  
C# Mono1.834,5081026  
 reverse-complement 
Python CPython2.7349,072288  
C# Mono2.2027,136727  
 sum-file 
Python CPython20.752,44477  
C# Mono9.664,764198  
 k-nucleotide 
Python CPython58.4525,208475  
C# Mono18.5268,0641012  
 nsieve 
Python CPython8.5735,220246  
C# Mono2.289,604341  
 partial-sums 
Python CPython27.412,476395  
C# Mono7.284,704455  
 binary-trees 
Python CPython93.4116,116418  
C# Mono8.2514,584610  
 nsieve-bits 
Python CPython144.4012,436288  
C# Mono7.707,128363  
 fasta 
Python CPython692.042,420779  
C# Mono26.234,6561180  
 fannkuch 
Python CPython772.842,404411  
C# Mono18.735,064549  
 mandelbrot 
Python CPython323.702,420303  
C# Mono7.154,592484  
 recursive 
Python CPython683.7414,296360  
C# Mono9.225,060435  
 n-body 
Python CPython2,015.782,4401027  
C# Mono23.205,0721410  
 chameneos-redux 
Python CPython275.842,576866  
No C# Mono
 spectral-norm
   No program

 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