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 |
| binary-trees | 1/4 | ± | ± | |
| mandelbrot | 1/2 | 1/15 | ± | |
| fasta | ± | ± | ± | |
| n-body | ± | ± | ± | |
| spectral-norm | ± | 3× | 1/2 | |
| pidigits | ± | 2× | ± | |
| reverse-complement | ± | 4× | ± | |
| k-nucleotide | 2× | 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 |
|---|---|---|---|---|---|
| binary-trees | |||||
| Python CPython | 1,045.71 | 296.77 | 674,488 | 626 | 85% 85% 86% 97% |
| Perl | 1,292.44 | 1,292.38 | 643,488 | 541 | 0% 0% 100% 0% |
| mandelbrot | |||||
| Python CPython | 3,115.98 | 779.18 | 18,824 | 425 | 100% 100% 100% 100% |
| Perl | 5,578.83 | 1,436.69 | 291,628 | 550 | 97% 97% 97% 97% |
| fasta | |||||
| Python CPython | 234.29 | 234.32 | 2,852 | 779 | 4% 26% 37% 34% |
| Perl | 339.78 | 339.76 | 2,112 | 934 | 100% 0% 0% 0% |
| n-body | |||||
| Python CPython | 1,508.59 | 1,508.52 | 2,940 | 1105 | 100% 0% 0% 0% |
| Perl | 1,914.13 | 1,914.02 | 2,128 | 1140 | 0% 0% 0% 100% |
| spectral-norm | |||||
| Python CPython | 1,150.52 | 296.88 | 20,744 | 428 | 95% 96% 97% 100% |
| Perl | 1,212.30 | 304.61 | 7,792 | 846 | 100% 100% 99% 100% |
| pidigits | |||||
| Python CPython | 7.40 | 7.40 | 5,528 | 476 | 0% 0% 100% 0% |
| Perl | 7.03 | 7.03 | 3,284 | 385 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Python CPython | 7.64 | 7.64 | 538,340 | 288 | 100% 0% 0% 0% |
| Perl | 5.78 | 5.79 | 124,036 | 237 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Python CPython | 415.27 | 144.14 | 439,968 | 520 | 56% 88% 50% 96% |
| Perl | 281.57 | 88.72 | 2,774,904 | 648 | 78% 73% 88% 83% |
| regex-dna | |||||
| Python CPython | 29.22 | 29.22 | 191,156 | 342 | 0% 100% 0% 0% |
| Perl | 39.07 | 14.23 | 153,584 | 527 | 55% 66% 58% 96% |
| fannkuch | |||||
| Python CPython | 4,355.80 | 4,355.54 | 2,812 | 387 | 100% 0% 0% 0% |
| Perl | 4,206.05 | 1,062.52 | 6,020 | 471 | 99% 99% 99% 100% |
| chameneos-redux | |||||
| Python CPython | 288.54 | 237.53 | 3,020 | 869 | 39% 33% 17% 27% |
Python 2.6.3
Online book: Dive Into Python
Home Page: http://www.python.org/
Download: http://www.python.org/download/