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/4 | 1/3 | ± | |
| binary-trees | 1/2 | 1/2 | ± | |
| regex-dna | 1/2 | ± | ± | |
| fasta | 1/2 | ± | ± | |
| recursive | 1/2 | ± | ± | |
| mandelbrot | 1/2 | ± | ± | |
| fannkuch | ± | ± | ± | |
| n-body | ± | 2× | ± | |
| pidigits | ± | ± | ± | |
| reverse-complement | ± | ± | ± | |
| partial-sums | ± | ± | ± | |
| sum-file | ± | ± | ± | |
| nsieve-bits | ± | 3× | ± | |
| 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 | 14.53 | 82,412 | 243 | ||
| Perl | 60.70 | 242,316 | 290 | ||
| binary-trees | |||||
| Python CPython | 90.93 | 16,024 | 418 | ||
| Perl | 224.06 | 37,588 | 481 | ||
| regex-dna | |||||
| Python CPython | 7.88 | 19,120 | 342 | ||
| Perl | 13.66 | 25,048 | 449 | ||
| fasta | |||||
| Python CPython | 517.71 | 3,160 | 779 | ||
| Perl | 850.67 | 3,156 | 934 | ||
| recursive | |||||
| Python CPython | 621.97 | 14,896 | 360 | ||
| Perl | 956.31 | 10,812 | 380 | ||
| mandelbrot | |||||
| Python CPython | 251.14 | 3,388 | 303 | ||
| Perl | 382.65 | 3,388 | 311 | ||
| fannkuch | |||||
| Python CPython | 593.14 | 3,148 | 387 | ||
| Perl | 728.50 | 3,144 | 348 | ||
| n-body | |||||
| Python CPython | 1,348.84 | 3,140 | 1027 | ||
| Perl | 1,567.73 | 1,904 | 1140 | ||
| pidigits | |||||
| Python CPython | 5.34 | 3,348 | 476 | ||
| Perl | 6.21 | 3,144 | 385 | ||
| reverse-complement | |||||
| Python CPython | 2.30 | 46,180 | 288 | ||
| Perl | 1.99 | 38,356 | 298 | ||
| partial-sums | |||||
| Python CPython | 18.14 | 3,168 | 395 | ||
| Perl | 14.23 | 3,156 | 389 | ||
| sum-file | |||||
| Python CPython | 19.88 | 14,924 | 77 | ||
| Perl | 15.55 | 14,916 | 84 | ||
| nsieve-bits | |||||
| Python CPython | 126.15 | 12,416 | 336 | ||
| Perl | 93.55 | 4,024 | 253 | ||
| k-nucleotide | |||||
| Python CPython | 49.68 | 25,220 | 475 | ||
| Perl | 27.54 | 42,836 | 359 | ||
| chameneos-redux | |||||
| Python CPython | |||||
| spectral-norm | |||||
Python 2.5.2
Online book: Dive Into Python
Home Page: http://www.python.org/
Download: http://www.python.org/download/