÷

 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
↓ reverse-complement±1/3
↓ k-nucleotide±1/4
↓ binary-trees10×±
↓ mandelbrot14×1/2±
↓ fasta23×±
↓ n-body63×±
↓ spectral-norm74×18×±
↓ fannkuch83×±

± 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
 reverse-complement 
Python CPython7.647.64538,340288  100% 0% 0% 0%
Fortran Intel11.2611.26166,568772  0% 0% 0% 100%
 k-nucleotide 
Python CPython476.18157.21439,968557  77% 54% 93% 76%
Fortran Intel137.67137.66205,6602238  0% 0% 0% 100%
 binary-trees 
Python CPython1,045.71296.77674,488626  85% 85% 86% 97%
Fortran Intel48.0648.0665,936826  0% 0% 0% 100%
 mandelbrot 
Python CPython3,115.98779.1818,824425  100% 100% 100% 100%
Fortran Intel56.8456.8432,392485  0% 0% 0% 100%
 fasta 
Python CPython234.29234.322,852779  4% 26% 37% 34%
Fortran Intel9.989.983961155  0% 0% 0% 100%
 n-body 
Python CPython1,508.591,508.522,9401105  100% 0% 0% 0%
Fortran Intel23.9923.994401389  0% 100% 0% 0%
 spectral-norm 
Python CPython1,150.52296.8820,744428  95% 96% 97% 100%
Fortran Intel15.824.001,140568  99% 99% 99% 99%
 fannkuch 
Python CPython4,355.804,355.542,812387  100% 0% 0% 0%
Fortran Intel52.2652.26408521  0% 100% 0% 0%
 chameneos-redux 
Python CPython288.54237.533,020869  39% 33% 17% 27%
No Fortran Intel
 pidigits 
Python CPython61.4461.443,600407  0% 0% 0% 100%
No Fortran Intel
 regex-dna 
Python CPython29.2229.22191,156342  0% 100% 0% 0%
No Fortran Intel

 Python CPython : uncluttered imperative programming plus objects 

Python 2.6.3

Online book: Dive Into Python

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

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

Revised BSD license