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 |
| mandelbrot | 1/2 | 6× | ± | |
| binary-trees | 1/2 | ± | ± | |
| fasta | ± | ± | ± | |
| n-body | ± | ± | ± | |
| regex-dna | ± | ± | 1/2 | |
| spectral-norm | ± | 1/2 | 1/2 | |
| pidigits | ± | 2× | ± | |
| reverse-complement | ± | 4× | ± | |
| fannkuch | ± | 2× | ± | |
| k-nucleotide | 2× | 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 | 3,103.64 | 3,103.45 | 18,844 | 425 | 0% 0% 0% 100% |
| Perl | 5,268.13 | 5,267.81 | 3,032 | 311 | 0% 0% 0% 100% |
| binary-trees | |||||
| Python CPython | 818.45 | 818.40 | 674,580 | 626 | 0% 0% 0% 100% |
| Perl | 1,297.73 | 1,297.68 | 643,488 | 541 | 0% 0% 0% 100% |
| fasta | |||||
| Python CPython | 235.18 | 235.25 | 2,856 | 779 | 1% 1% 0% 100% |
| Perl | 349.59 | 349.57 | 2,112 | 934 | 0% 1% 0% 100% |
| n-body | |||||
| Python CPython | 1,416.10 | 1,416.02 | 2,940 | 1105 | 0% 0% 0% 100% |
| Perl | 1,911.92 | 1,911.80 | 2,128 | 1140 | 0% 0% 0% 100% |
| regex-dna | |||||
| Python CPython | 29.22 | 29.22 | 191,168 | 342 | 0% 0% 0% 100% |
| Perl | 38.84 | 38.84 | 153,472 | 527 | 0% 0% 0% 100% |
| spectral-norm | |||||
| Python CPython | 1,172.48 | 1,172.40 | 3,380 | 378 | 0% 0% 0% 100% |
| Perl | 1,184.33 | 1,184.26 | 7,792 | 846 | 0% 0% 0% 100% |
| pidigits | |||||
| Python CPython | 7.40 | 7.40 | 5,528 | 476 | 0% 0% 0% 100% |
| Perl | 7.04 | 7.05 | 3,284 | 385 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Python CPython | 7.55 | 7.55 | 503,668 | 288 | 0% 0% 0% 100% |
| Perl | 5.80 | 5.80 | 124,036 | 237 | 0% 0% 1% 100% |
| fannkuch | |||||
| Python CPython | 4,311.65 | 4,311.44 | 2,812 | 387 | 0% 0% 0% 100% |
| Perl | 3,160.50 | 3,160.31 | 1,692 | 391 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Python CPython | 424.35 | 425.39 | 439,968 | 520 | 0% 0% 0% 100% |
| Perl | 249.61 | 252.46 | 709,264 | 359 | 0% 0% 0% 100% |
| chameneos-redux | |||||
| Python CPython | 144.97 | 145.06 | 3,016 | 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/