Ubuntu : Intel® Q6600® quad-core |
Compare the performance of Ruby MRI programs against some other language implementation.
For more information about the Ruby implementation we measured see ↓ about Ruby MRI.
| 1/2 1/3 1/4 Ruby MRI is better | ||||
|---|---|---|---|---|
| Programs | Time | Memory Use | Source Size | Reduced N |
| chameneos-redux | ||||
| reverse-complement | 1/4 | 1/2 | ± | |
| binary-trees | ± | ± | ± | |
| regex-dna | ± | 1/2 | ± | |
| fannkuch | 2 | ± | ± | |
| spectral-norm | 2 | ± | ± | |
| fasta | 2 | 116 | ± | |
| n-body | 2 | ± | ± | |
| k-nucleotide | 3 | 1/5 | ± | |
| pidigits | 7 | 4 | ± | |
| mandelbrot | 8 | 1/191 | 1/2 | |
± look at the measurements
| Program & Logs | CPU secs | Memory KB | Size B | Elapsed secs | ~ CPU Load |
|---|---|---|---|---|---|
| reverse-complement | |||||
| Ruby MRI #2 | 10.09 | 197,348 | 255 | 10.09 | 0% 98% 0% 0% |
| Perl #2 | 38.22 | 422,912 | 298 | 38.22 | 0% 99% 0% 0% |
| binary-trees | |||||
| Ruby MRI | 1,070.44 | 457,788 | 412 | 1,070.38 | 1% 100% 1% 1% |
| Perl #2 | 1,343.31 | 643,504 | 541 | 1,343.26 | 100% 0% 0% 0% |
| regex-dna | |||||
| Ruby MRI | 58.39 | 254,336 | 323 | 58.39 | 0% 0% 0% 100% |
| Perl #4 | 46.45 | 562,056 | 440 | 46.45 | 0% 100% 0% 0% |
| fannkuch | |||||
| Ruby MRI #3 | 6,779.96 | 1,888 | 340 | 6,779.55 | 0% 100% 0% 0% |
| Perl | 4,358.00 | 1,668 | 348 | 4,357.75 | 0% 0% 100% 0% |
| spectral-norm | |||||
| Ruby MRI | 2,251.47 | 2,676 | 292 | 2,251.33 | 0% 0% 0% 100% |
| Perl | 1,446.02 | 2,796 | 355 | 1,445.94 | 87% 0% 13% 0% |
| fasta | |||||
| Ruby MRI #2 | 630.13 | 245,868 | 732 | 630.12 | 0% 41% 1% 58% |
| Perl #4 | 347.13 | 2,128 | 934 | 347.13 | 0% 100% 0% 0% |
| n-body | |||||
| Ruby MRI #2 | 3,982.80 | 1,652 | 1137 | 3,982.55 | 0% 100% 0% 0% |
| Perl | 1,930.06 | 2,140 | 1140 | 1,929.94 | 0% 100% 0% 0% |
| k-nucleotide | |||||
| Ruby MRI #2 | 843.59 | 147,980 | 420 | 843.54 | 0% 0% 0% 100% |
| Perl #2 | 246.72 | 709,252 | 359 | 249.79 | 1% 1% 98% 0% |
| pidigits | |||||
| Ruby MRI | 53.81 | 13,924 | 518 | 53.81 | 0% 0% 0% 100% |
| Perl #2 | 8.08 | 3,304 | 385 | 8.08 | 100% 0% 0% 0% |
| mandelbrot | |||||
| Ruby MRI | 11,695.70 | 1,568 | 313 | 11,694.96 | 0% 100% 0% 0% |
| Perl | 5,489.72 | 300,160 | 550 | 1,432.43 | 96% 95% 96% 95% |
online book "Programming Ruby: The Pragmatic Programmer's Guide
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux]
Home Page: Ruby is
Download: Download Ruby