Ubuntu : Intel® Q6600® quad-core |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used.
Each chart bar shows, for one unidentified benchmark, how much the fastest Ruby 1.9 program used compared to the fastest Ruby MRI 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 Ruby 1.9 program used compared to the fastest Ruby MRI program.
| Ruby 1.9 used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | Reduced N |
| binary-trees | 1/4 | 1/2 | ± | |
| spectral-norm | 1/3 | ± | ± | |
| n-body | 1/2 | 2× | ± | |
| mandelbrot | 1/2 | 2× | ± | |
| fasta | 1/2 | ± | ± | |
| fannkuch | 1/2 | 2× | ± | |
| k-nucleotide | ± | ± | ± | |
| regex-dna | ± | ± | ± | |
| reverse-complement | ± | ± | ± | |
| chameneos-redux | ± | 2× | ± | |
| pidigits | ± | ± | ± | |
± 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 Ruby 1.9 program are shown for comparison against measurements of the fastest Ruby MRI program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ~ CPU Load |
|---|---|---|---|---|---|
| binary-trees | |||||
| Ruby 1.9 | 245.46 | 245.39 | 196,796 | 412 | 0% 100% 0% 57% |
| Ruby MRI | 1,070.44 | 1,070.38 | 457,788 | 412 | 1% 100% 1% 1% |
| spectral-norm | |||||
| Ruby 1.9 | 671.09 | 670.90 | 3,560 | 292 | 0% 100% 0% 0% |
| Ruby MRI | 2,251.47 | 2,251.33 | 2,676 | 292 | 0% 0% 0% 100% |
| n-body | |||||
| Ruby 1.9 | 2,072.12 | 2,071.49 | 2,832 | 1137 | 0% 100% 0% 0% |
| Ruby MRI | 3,982.80 | 3,982.55 | 1,652 | 1137 | 0% 100% 0% 0% |
| mandelbrot | |||||
| Ruby 1.9 | 6,399.39 | 6,397.57 | 2,772 | 313 | 0% 0% 0% 100% |
| Ruby MRI | 11,695.70 | 11,694.96 | 1,568 | 313 | 0% 100% 0% 0% |
| fasta | |||||
| Ruby 1.9 | 357.62 | 357.52 | 198,596 | 732 | 1% 1% 0% 100% |
| Ruby MRI | 630.13 | 630.12 | 245,868 | 732 | 0% 41% 1% 58% |
| fannkuch | |||||
| Ruby 1.9 | 3,886.22 | 3,885.17 | 2,956 | 344 | 0% 0% 100% 0% |
| Ruby MRI | 6,779.96 | 6,779.55 | 1,888 | 340 | 0% 100% 0% 0% |
| k-nucleotide | |||||
| Ruby 1.9 | 725.39 | 725.14 | 157,320 | 420 | 0% 0% 0% 100% |
| Ruby MRI | 843.59 | 843.54 | 147,980 | 420 | 0% 0% 0% 100% |
| regex-dna | |||||
| Ruby 1.9 | 56.68 | 56.67 | 321,412 | 323 | 0% 1% 100% 0% |
| Ruby MRI | 58.39 | 58.39 | 254,336 | 323 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Ruby 1.9 | 9.83 | 9.83 | 247,288 | 255 | 0% 0% 0% 100% |
| Ruby MRI | 10.09 | 10.09 | 197,348 | 255 | 0% 98% 0% 0% |
| chameneos-redux | |||||
| Ruby 1.9 | 210.68 | 156.49 | 2,980 | 928 | 22% 35% 33% 42% |
| Ruby MRI | 131.29 | 131.28 | 1,956 | 928 | 100% 0% 0% 0% |
| pidigits | |||||
| Ruby 1.9 | 68.17 | 68.14 | 13,416 | 518 | 0% 0% 0% 100% |
| Ruby MRI | 53.81 | 53.81 | 13,924 | 518 | 0% 0% 0% 100% |
online book Programming Ruby: The Pragmatic Programmers Guide
ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux]
Home Page: Ruby Core
Download: Ruby 1.9.1 released