x64 Ubuntu : Intel® Q6600® one 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 |
| fasta | 1/2 | ± | ± | |
| mandelbrot | 1/2 | ± | ± | |
| binary-trees | 1/2 | ± | ± | |
| regex-dna | ± | ± | 1/2 | |
| spectral-norm | ± | 1/2 | 1/2 | |
| n-body | ± | ± | ± | |
| pidigits | ± | 2× | ± | |
| reverse-complement | ± | ± | ± | |
| fannkuch | ± | 2× | ± | |
| k-nucleotide | ± | 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 |
|---|---|---|---|---|---|
| fasta | |||||
| Python CPython | 168.68 | 168.74 | 3,640 | 779 | 1% 1% 1% 100% |
| Perl | 311.00 | 310.98 | 2,548 | 934 | 1% 1% 1% 100% |
| mandelbrot | |||||
| Python CPython | 2,532.35 | 2,532.23 | 3,616 | 287 | 0% 0% 0% 100% |
| Perl | 4,387.61 | 4,387.50 | 4,132 | 311 | 0% 0% 0% 100% |
| binary-trees | |||||
| Python CPython | 900.64 | 900.59 | 1,349,936 | 626 | 0% 0% 0% 100% |
| Perl | 1,490.64 | 1,490.58 | 1,091,276 | 541 | 0% 0% 0% 100% |
| regex-dna | |||||
| Python CPython | 26.84 | 26.84 | 210,956 | 342 | 0% 0% 0% 100% |
| Perl | 38.78 | 38.78 | 165,064 | 527 | 0% 0% 0% 100% |
| spectral-norm | |||||
| Python CPython | 844.92 | 844.89 | 4,504 | 378 | 0% 0% 0% 100% |
| Perl | 1,094.72 | 1,094.65 | 11,060 | 846 | 0% 0% 0% 100% |
| n-body | |||||
| Python CPython | 1,272.50 | 1,272.42 | 3,832 | 1105 | 0% 0% 0% 100% |
| Perl | 1,639.61 | 1,639.53 | 2,572 | 1140 | 0% 0% 0% 100% |
| pidigits | |||||
| Python CPython | 7.17 | 7.17 | 6,504 | 476 | 0% 0% 0% 100% |
| Perl | 7.47 | 7.48 | 3,884 | 385 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Python CPython | 6.26 | 6.27 | 596,776 | 288 | 0% 0% 0% 100% |
| Perl | 5.30 | 5.30 | 433,056 | 298 | 0% 0% 0% 100% |
| fannkuch | |||||
| Python CPython | 3,367.88 | 3,367.69 | 3,580 | 387 | 0% 0% 0% 100% |
| Perl | 2,660.57 | 2,660.43 | 2,060 | 391 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Python CPython | 330.44 | 332.60 | 489,420 | 520 | 0% 0% 1% 100% |
| Perl | 225.09 | 228.97 | 780,228 | 359 | 0% 0% 0% 100% |
| chameneos-redux | |||||
| Python CPython | 134.30 | 134.39 | 3,812 | 869 | 0% 0% 0% 100% |
Python 2.6.3
Online book: Dive Into Python
Home Page: http://www.python.org/
Download: http://www.python.org/download/