x64 Ubuntu : Intel® Q6600® quad-core |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used.
Each chart bar shows, for one unidentified benchmark, how much the fastest Python CPython program used compared to the fastest Perl program.
This table shows 3 comparisons - Time-used, Memory-used and Code-used.
Each table row shows, for one named benchmark, how much the fastest Python CPython program used compared to the fastest Perl program.
| Python CPython used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | Reduced N |
| mandelbrot | 1/6 | 6× | ± | |
| binary-trees | 1/3 | ± | ± | |
| fasta | 1/2 | ± | ± | |
| n-body | ± | ± | ± | |
| spectral-norm | ± | 3× | 1/2 | |
| pidigits | ± | 2× | ± | |
| reverse-complement | ± | ± | ± | |
| k-nucleotide | ± | 1/6 | ± | |
| regex-dna | 2× | ± | 1/2 | |
| fannkuch | 4× | 1/2 | ± | |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.
For each named benchmark, measurements of the fastest Python CPython program are shown for comparison against measurements of the fastest Perl program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ~ CPU Load |
|---|---|---|---|---|---|
| mandelbrot | |||||
| Python CPython | 2,721.37 | 681.40 | 24,444 | 425 | 100% 100% 100% 100% |
| Perl | 4,226.42 | 4,226.21 | 4,136 | 311 | 0% 0% 100% 0% |
| binary-trees | |||||
| Python CPython | 1,320.18 | 378.04 | 1,373,400 | 626 | 96% 85% 85% 84% |
| Perl | 1,276.89 | 1,276.85 | 1,091,276 | 541 | 0% 0% 100% 0% |
| fasta | |||||
| Python CPython | 167.44 | 167.51 | 3,640 | 779 | 44% 29% 28% 1% |
| Perl | 314.46 | 314.46 | 2,548 | 934 | 100% 0% 0% 0% |
| n-body | |||||
| Python CPython | 1,194.46 | 1,194.39 | 3,832 | 1105 | 100% 0% 0% 0% |
| Perl | 1,665.13 | 1,665.14 | 2,568 | 1140 | 0% 0% 100% 0% |
| spectral-norm | |||||
| Python CPython | 868.17 | 218.69 | 28,068 | 428 | 99% 99% 99% 99% |
| Perl | 1,137.10 | 285.55 | 10,976 | 846 | 100% 100% 100% 100% |
| pidigits | |||||
| Python CPython | 7.16 | 7.17 | 6,508 | 476 | 100% 0% 0% 0% |
| Perl | 7.46 | 7.46 | 3,868 | 385 | 100% 0% 0% 0% |
| reverse-complement | |||||
| Python CPython | 6.28 | 6.28 | 565,856 | 288 | 0% 0% 0% 100% |
| Perl | 5.25 | 5.25 | 431,496 | 298 | 100% 0% 0% 0% |
| k-nucleotide | |||||
| Python CPython | 320.22 | 114.57 | 489,420 | 520 | 48% 47% 92% 89% |
| Perl | 256.15 | 78.58 | 2,883,780 | 648 | 81% 71% 88% 84% |
| regex-dna | |||||
| Python CPython | 26.85 | 26.85 | 203,644 | 342 | 100% 0% 0% 0% |
| Perl | 38.61 | 12.84 | 167,208 | 527 | 78% 66% 76% 81% |
| fannkuch | |||||
| Python CPython | 3,348.33 | 3,348.15 | 3,580 | 387 | 0% 0% 100% 0% |
| Perl | 3,749.89 | 942.90 | 8,808 | 471 | 99% 100% 100% 100% |
| chameneos-redux | |||||
| Python CPython | 286.54 | 216.63 | 3,816 | 869 | 49% 24% 28% 22% |
Python 2.6.3
Online book: Dive Into Python
Home Page: http://www.python.org/
Download: http://www.python.org/download/