÷

 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 Fortran Intel 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 Fortran Intel program.

 Python CPython used what fraction? used how many times more? 
Benchmark Time Memory Code
 reverse-complement1/21/3
 k-nucleotide1/21/4
 regex-dna±1/21/8
 binary-trees10×±
 mandelbrot13×±±
 fasta21×±
 n-body60×±
 spectral-norm61×21×±
 fannkuch62×±

± 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 Fortran Intel program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 reverse-complement 
Python CPython6.786.78561,860288  0% 40% 61% 0%
Fortran Intel11.2611.26166,568772  0% 0% 0% 100%
 k-nucleotide 
Python CPython277.7284.94441,680519  54% 94% 82% 96%
Fortran Intel137.67137.66205,6602238  0% 0% 0% 100%
 regex-dna 
Python CPython1.211.219,140314  0% 2% 2% 100%
Fortran Intel1.811.8113,9922425  0% 100% 0% 0%
 binary-trees 
Python CPython980.23279.06674,024626  86% 89% 85% 90%
Fortran Intel48.0648.0665,936826  0% 0% 0% 100%
 mandelbrot 
Python CPython2,882.02720.5423,468425  100% 100% 100% 100%
Fortran Intel56.8456.8432,392485  0% 0% 0% 100%
 fasta 
Python CPython208.55208.542,928779  61% 23% 4% 12%
Fortran Intel9.989.983961155  0% 0% 0% 100%
 n-body 
Python CPython1,443.101,443.022,9321105  86% 7% 1% 7%
Fortran Intel23.9923.994401389  0% 100% 0% 0%
 spectral-norm 
Python CPython942.71242.9423,632428  98% 97% 98% 95%
Fortran Intel15.824.001,140568  99% 99% 99% 99%
 fannkuch 
Python CPython3,232.093,231.902,852387  36% 8% 48% 7%
Fortran Intel52.2652.26408521  0% 100% 0% 0%
 pidigits 
Python CPython1.821.823,008407  72% 0% 34% 0%
Fortran IntelFailed
 chameneos-redux 
Python CPython2.361.943,020869  36% 24% 51% 15%
No program

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

Remember - those are just the fastest Python CPython and Fortran Intel 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 Fortran Intel 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.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2

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