OUT-OF-DATE! Read http://shootout.alioth.debian.org/ |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each chart bar shows, for one unidentified benchmark, how much the fastest Ruby MRI program used compared to the fastest Java 6 -Xint program.
This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each table row shows, for one named benchmark, how much the fastest Ruby MRI program used compared to the fastest Java 6 -Xint program.
| Ruby MRI used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| regex-dna | 1/17 | 1/2 | 1/2 | |
| k-nucleotide | ± | ± | 1/3 | |
| reverse-complement | ± | 2× | 1/2 | |
| pidigits | ± | ± | ± | |
| partial-sums | 5× | 1/4 | 1/2 | |
| fannkuch | 7× | 1/2 | 1/2 | |
| binary-trees | 8× | 2× | ± | |
| n-body | 12× | 1/6 | ± | |
| nsieve | 14× | 2× | ± | |
| recursive | 14× | 1/2 | ± | |
| spectral-norm | 15× | 1/4 | 1/2 | |
| mandelbrot | 16× | 1/6 | 1/2 | |
| fasta | 29× | 33× | 1/2 | |
| nsieve-bits | 30× | 1/4 | ± | |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ≈ CPU Load ~ speed and size.
For each named benchmark, measurements of the fastest Ruby MRI program are shown for comparison against measurements of the fastest Java 6 -Xint program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| regex-dna | |||||
| Ruby MRI | 7.62 | 42,824 | 396 | ||
| Java 6 -Xint | 130.26 | 66,972 | 921 | ||
| k-nucleotide | |||||
| Ruby MRI | 160.09 | 84,616 | 420 | ||
| Java 6 -Xint | 174.59 | 68,312 | 1052 | ||
| reverse-complement | |||||
| Ruby MRI | 8.08 | 86,340 | 266 | ||
| Java 6 -Xint | 8.63 | 57,188 | 592 | ||
| pidigits | |||||
| Ruby MRI | 0.30 | 6,032 | 653 | ||
| Java 6 -Xint | 0.21 | 7,716 | 938 | ||
| partial-sums | |||||
| Ruby MRI | 59.61 | 1,640 | 362 | ||
| Java 6 -Xint | 13.19 | 7,120 | 711 | ||
| fannkuch | |||||
| Ruby MRI | 12.42 | 2,864 | 326 | ||
| Java 6 -Xint | 1.68 | 7,092 | 555 | ||
| binary-trees | |||||
| Ruby MRI | 172.31 | 48,756 | 409 | ||
| Java 6 -Xint | 21.46 | 24,364 | 603 | ||
| n-body | |||||
| Ruby MRI | 4,847.57 | 1,712 | 1137 | ||
| Java 6 -Xint | 400.61 | 9,556 | 1424 | ||
| nsieve | |||||
| Ruby MRI | 41.51 | 30,408 | 270 | ||
| Java 6 -Xint | 2.99 | 19,388 | 296 | ||
| recursive | |||||
| Ruby MRI | 45.76 | 4,492 | 301 | ||
| Java 6 -Xint | 3.18 | 9,752 | 427 | ||
| spectral-norm | |||||
| Ruby MRI | 9,862.17 | 2,732 | 292 | ||
| Java 6 -Xint | 660.73 | 10,584 | 514 | ||
| mandelbrot | |||||
| Ruby MRI | 59.32 | 1,652 | 349 | ||
| Java 6 -Xint | 3.68 | 9,388 | 665 | ||
| fasta | |||||
| Ruby MRI | 4,202.98 | 238,156 | 744 | ||
| Java 6 -Xint | 146.29 | 7,152 | 1240 | ||
| nsieve-bits | |||||
| Ruby MRI | 139.66 | 2,740 | 346 | ||
| Java 6 -Xint | 4.63 | 10,000 | 423 | ||
| chameneos-redux | |||||
| Java 6 -Xint | 0.73 | 10,332 | 1429 | ||
Remember - those are just the fastest Ruby MRI and Java 6 -Xint programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Ruby MRI.
Maybe one of those other Ruby MRI programs is fastest on a different OS/machine.
Remember - those are just the fastest Ruby MRI and Java 6 -Xint programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.
Maybe one of those other programs is fastest on a different OS/machine.
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