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