OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
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 |
| nsieve | 1/3 | 1/3 | ± | |
| binary-trees | 1/3 | 1/3 | ± | |
| regex-dna | 1/2 | ± | ± | |
| pidigits | 1/2 | ± | ± | |
| fasta | ± | ± | ± | |
| recursive | ± | ± | ± | |
| mandelbrot | ± | ± | ± | |
| fannkuch | ± | 2× | ± | |
| sum-file | ± | 2× | ± | |
| n-body | ± | ± | ± | |
| reverse-complement | ± | ± | ± | |
| nsieve-bits | ± | 3× | ± | |
| partial-sums | 2× | 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 |
|---|---|---|---|---|---|
| nsieve | |||||
| Python CPython | 8.57 | 35,220 | 246 | ||
| Perl | 25.45 | 121,904 | 290 | ||
| binary-trees | |||||
| Python CPython | 93.41 | 16,116 | 418 | ||
| Perl | 239.36 | 47,936 | 541 | ||
| regex-dna | |||||
| Python CPython | 6.04 | 20,516 | 342 | ||
| Perl | 11.81 | 21,408 | 431 | ||
| pidigits | |||||
| Python CPython | 2.06 | 2,928 | 476 | ||
| Perl | 3.61 | 2,532 | 385 | ||
| fasta | |||||
| Python CPython | 692.04 | 2,420 | 779 | ||
| Perl | 950.04 | 1,872 | 934 | ||
| recursive | |||||
| Python CPython | 683.74 | 14,296 | 360 | ||
| Perl | 898.78 | 10,836 | 380 | ||
| mandelbrot | |||||
| Python CPython | 323.70 | 2,420 | 303 | ||
| Perl | 403.20 | 1,724 | 311 | ||
| fannkuch | |||||
| Python CPython | 772.84 | 2,404 | 411 | ||
| Perl | 855.72 | 1,492 | 348 | ||
| sum-file | |||||
| Python CPython | 20.75 | 2,444 | 77 | ||
| Perl | 18.17 | 1,468 | 84 | ||
| n-body | |||||
| Python CPython | 2,015.78 | 2,440 | 1027 | ||
| Perl | 1,697.59 | 1,936 | 1140 | ||
| reverse-complement | |||||
| Python CPython | 2.73 | 49,072 | 288 | ||
| Perl | 1.99 | 38,360 | 298 | ||
| nsieve-bits | |||||
| Python CPython | 144.40 | 12,436 | 288 | ||
| Perl | 100.18 | 4,004 | 253 | ||
| partial-sums | |||||
| Python CPython | 27.41 | 2,476 | 395 | ||
| Perl | 17.41 | 1,476 | 389 | ||
| k-nucleotide | |||||
| Python CPython | 58.45 | 25,208 | 475 | ||
| Perl | 32.07 | 42,816 | 359 | ||
| chameneos-redux | |||||
| Python CPython | 275.84 | 2,576 | 866 | ||
| spectral-norm | |||||
Python 2.5.1
Online book: Dive Into Python
Home Page: http://www.python.org/
Download: http://www.python.org/download/