OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
Do the Perl programs use optimized assembly code libraries? Are they small simple programs or very optimized programs? Do the Perl programs use a fraction of the time used by other programs or do they use several times more?
| Perl used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Programs | Time | Memory | Code | Reduced N |
| ↓ nsieve-bits | 1/6 | 1/2 | ± | |
| ↓ k-nucleotide | 1/5 | 1/2 | ± | |
| ↓ fasta | 1/4 | 1/127 | ± | |
| ↓ sum-file | 1/4 | 1/2 | ± | |
| ↓ reverse-complement | 1/4 | 1/2 | ± | |
| ↓ mandelbrot | 1/4 | ± | ± | |
| ↓ partial-sums | 1/3 | ± | ± | |
| ↓ n-body | 1/3 | ± | ± | |
| ↓ spectral-norm | 1/2 | ± | ± | |
| ↓ fannkuch | 1/2 | ± | ± | |
| ↓ recursive | 1/2 | 1/4 | ± | |
| ↓ nsieve | 1/2 | 4× | ± | |
| ↓ pidigits | ± | 1/11 | 1/2 | |
| ↓ regex-dna | ± | 1/4 | ± | |
| ↓ binary-trees | ± | ± | ± | |
± look at the measurements and then look at the programs.
| Program & Logs | CPU secs | Elapsed secs | Memory KB | Code B | ~ CPU Load |
|---|---|---|---|---|---|
| nsieve-bits | |||||
| Perl | 100.18 | 4,004 | 253 | ||
| Ruby MRI | 588.26 | 6,020 | 346 | ||
| k-nucleotide | |||||
| Perl | 32.07 | 42,816 | 359 | ||
| Ruby MRI | 160.09 | 84,616 | 420 | ||
| fasta | |||||
| Perl | 950.04 | 1,872 | 934 | ||
| Ruby MRI | 4,202.98 | 238,156 | 744 | ||
| sum-file | |||||
| Perl | 18.17 | 1,468 | 84 | ||
| Ruby MRI | 76.34 | 2,448 | 75 | ||
| reverse-complement | |||||
| Perl | 1.99 | 38,360 | 298 | ||
| Ruby MRI | 8.08 | 86,340 | 266 | ||
| mandelbrot | |||||
| Perl | 403.20 | 1,724 | 311 | ||
| Ruby MRI | 1,455.28 | 1,652 | 349 | ||
| partial-sums | |||||
| Perl | 17.41 | 1,476 | 389 | ||
| Ruby MRI | 59.61 | 1,640 | 362 | ||
| n-body | |||||
| Perl | 1,697.59 | 1,936 | 1140 | ||
| Ruby MRI | 4,847.57 | 1,712 | 1137 | ||
| spectral-norm | |||||
| Perl | 4,089.08 | 2,468 | 334 | ||
| Ruby MRI | 9,862.17 | 2,732 | 292 | ||
| fannkuch | |||||
| Perl | 855.72 | 1,492 | 348 | ||
| Ruby MRI | 1,786.76 | 1,872 | 326 | ||
| recursive | |||||
| Perl | 898.78 | 10,836 | 380 | ||
| Ruby MRI | 1,482.39 | 48,360 | 301 | ||
| nsieve | |||||
| Perl | 25.45 | 121,904 | 290 | ||
| Ruby MRI | 41.51 | 30,408 | 270 | ||
| pidigits | |||||
| Perl | 3.61 | 2,532 | 385 | ||
| Ruby MRI | 3.68 | 28,196 | 653 | ||
| regex-dna | |||||
| Perl | 11.81 | 21,408 | 431 | ||
| Ruby MRI | 9.37 | 81,148 | 323 | ||
| binary-trees | |||||
| Perl | 239.36 | 47,936 | 541 | ||
| Ruby MRI | 172.31 | 48,756 | 409 | ||
| chameneos-redux | |||||
This is perl, v5.8.8 built for i686-linux-thread-multi
Home Page: http://www.perl.org/
Download: http://www.cpan.org/src/5.0/