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 -server 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 -server program.
| Ruby MRI used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| regex-dna | 2× | ± | 1/2 | |
| reverse-complement | 6× | 2× | 1/2 | |
| k-nucleotide | 9× | 1/2 | 1/3 | |
| partial-sums | 9× | 1/6 | ± | |
| pidigits | 12× | ± | 1/2 | |
| binary-trees | 21× | 2× | ± | |
| nsieve | 23× | 11× | ± | |
| fannkuch | 26× | 1/6 | 1/2 | |
| recursive | 56× | 1/2 | ± | |
| mandelbrot | 122× | 1/3 | 1/2 | |
| spectral-norm | 125× | ± | 1/2 | |
| nsieve-bits | 126× | 1/3 | ± | |
| fasta | 165× | 24× | 1/2 | |
| n-body | 181× | 1/6 | ± | |
± 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 -server program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| regex-dna | |||||
| Ruby MRI | 8.79 | 41,496 | 396 | ||
| Java 6 -server | 4.06 | 52,248 | 711 | ||
| reverse-complement | |||||
| Ruby MRI | 8.35 | 58,348 | 266 | ||
| Java 6 -server | 1.39 | 35,360 | 588 | ||
| k-nucleotide | |||||
| Ruby MRI | 145.78 | 30,932 | 420 | ||
| Java 6 -server | 15.75 | 66,540 | 1052 | ||
| partial-sums | |||||
| Ruby MRI | 63.51 | 1,604 | 362 | ||
| Java 6 -server | 6.85 | 9,460 | 470 | ||
| pidigits | |||||
| Ruby MRI | 38.79 | 15,096 | 518 | ||
| Java 6 -server | 3.31 | 11,728 | 938 | ||
| binary-trees | |||||
| Ruby MRI | 157.39 | 48,752 | 409 | ||
| Java 6 -server | 7.56 | 24,012 | 603 | ||
| nsieve | |||||
| Ruby MRI | 45.42 | 210,192 | 353 | ||
| Java 6 -server | 1.98 | 18,708 | 293 | ||
| fannkuch | |||||
| Ruby MRI | 12.55 | 1,812 | 326 | ||
| Java 6 -server | 0.48 | 9,976 | 761 | ||
| recursive | |||||
| Ruby MRI | 38.05 | 4,500 | 301 | ||
| Java 6 -server | 0.68 | 9,652 | 427 | ||
| mandelbrot | |||||
| Ruby MRI | 58.60 | 3,332 | 349 | ||
| Java 6 -server | 0.48 | 9,948 | 623 | ||
| spectral-norm | |||||
| Ruby MRI | 66.26 | 18,532 | 292 | ||
| Java 6 -server | 0.53 | 25,924 | 514 | ||
| nsieve-bits | |||||
| Ruby MRI | 118.13 | 3,152 | 346 | ||
| Java 6 -server | 0.94 | 10,324 | 517 | ||
| fasta | |||||
| Ruby MRI | 3,297.26 | 238,200 | 744 | ||
| Java 6 -server | 19.96 | 10,096 | 1240 | ||
| n-body | |||||
| Ruby MRI | 4,979.78 | 1,712 | 1137 | ||
| Java 6 -server | 27.54 | 10,888 | 1430 | ||
| chameneos-redux | |||||
Remember - those are just the fastest Ruby MRI and Java 6 -server 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 -server 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-09-24 patchlevel 111) [i486-linux]
Home Page: Ruby is
Download: Download Ruby