Ubuntu : Intel® Q6600® quad-core |
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.
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-complement | 1/2 | 3× | 1/3 | |
| k-nucleotide | 1/2 | 2× | 1/4 | |
| regex-dna | ± | 1/2 | 1/8 | |
| binary-trees | 6× | 10× | ± | |
| mandelbrot | 13× | ± | ± | |
| fasta | 21× | 7× | ± | |
| n-body | 60× | 7× | ± | |
| spectral-norm | 61× | 21× | ± | |
| fannkuch | 62× | 7× | ± | |
± read the measurements and then read the program source code.
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 CPython | 6.78 | 6.78 | 561,860 | 288 | 0% 40% 61% 0% |
| Fortran Intel | 11.26 | 11.26 | 166,568 | 772 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Python CPython | 277.72 | 84.94 | 441,680 | 519 | 54% 94% 82% 96% |
| Fortran Intel | 137.67 | 137.66 | 205,660 | 2238 | 0% 0% 0% 100% |
| regex-dna | |||||
| Python CPython | 1.21 | 1.21 | 9,140 | 314 | 0% 2% 2% 100% |
| Fortran Intel | 1.81 | 1.81 | 13,992 | 2425 | 0% 100% 0% 0% |
| binary-trees | |||||
| Python CPython | 980.23 | 279.06 | 674,024 | 626 | 86% 89% 85% 90% |
| Fortran Intel | 48.06 | 48.06 | 65,936 | 826 | 0% 0% 0% 100% |
| mandelbrot | |||||
| Python CPython | 2,882.02 | 720.54 | 23,468 | 425 | 100% 100% 100% 100% |
| Fortran Intel | 56.84 | 56.84 | 32,392 | 485 | 0% 0% 0% 100% |
| fasta | |||||
| Python CPython | 208.55 | 208.54 | 2,928 | 779 | 61% 23% 4% 12% |
| Fortran Intel | 9.98 | 9.98 | 396 | 1155 | 0% 0% 0% 100% |
| n-body | |||||
| Python CPython | 1,443.10 | 1,443.02 | 2,932 | 1105 | 86% 7% 1% 7% |
| Fortran Intel | 23.99 | 23.99 | 440 | 1389 | 0% 100% 0% 0% |
| spectral-norm | |||||
| Python CPython | 942.71 | 242.94 | 23,632 | 428 | 98% 97% 98% 95% |
| Fortran Intel | 15.82 | 4.00 | 1,140 | 568 | 99% 99% 99% 99% |
| fannkuch | |||||
| Python CPython | 3,232.09 | 3,231.90 | 2,852 | 387 | 36% 8% 48% 7% |
| Fortran Intel | 52.26 | 52.26 | 408 | 521 | 0% 100% 0% 0% |
| pidigits | |||||
| Python CPython | 1.82 | 1.82 | 3,008 | 407 | 72% 0% 34% 0% |
| Fortran Intel | |||||
| chameneos-redux | |||||
| Python CPython | 2.36 | 1.94 | 3,020 | 869 | 36% 24% 51% 15% |
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.
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 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/