Ubuntu : Intel® Q6600® quad-core |
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 JRuby 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 JRuby program used compared to the fastest Java 6 -server program.
| Ruby JRuby used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| pidigits | ± | ± | 1/2 | |
| regex-dna | 5× | ± | 1/2 | |
| reverse-complement | 6× | 2× | 1/2 | |
| binary-trees | 22× | 4× | ± | |
| chameneos-redux | 25× | 4× | ± | |
| k-nucleotide | 37× | ± | 1/4 | |
| n-body | 66× | 17× | ± | |
| fasta | 66× | 21× | 1/2 | |
| fannkuch | 118× | 12× | 1/3 | |
| spectral-norm | 242× | 18× | 1/3 | |
| mandelbrot | 365× | 5× | 1/3 | |
± 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 JRuby 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 |
|---|---|---|---|---|---|
| pidigits | |||||
| Ruby JRuby | 66.01 | 63.32 | 211,624 | 518 | 10% 18% 47% 28% |
| Java 6 -server | 59.18 | 58.03 | 240,912 | 800 | 34% 23% 31% 14% |
| regex-dna | |||||
| Ruby JRuby | 65.44 | 63.18 | 542,888 | 409 | 94% 3% 5% 3% |
| Java 6 -server | 29.50 | 11.81 | 694,708 | 929 | 87% 54% 54% 55% |
| reverse-complement | |||||
| Ruby JRuby | 21.23 | 18.61 | 744,616 | 255 | 7% 7% 92% 9% |
| Java 6 -server | 3.38 | 3.32 | 473,716 | 592 | 0% 2% 1% 98% |
| binary-trees | |||||
| Ruby JRuby | 315.36 | 251.91 | 1,629,936 | 412 | 31% 29% 47% 18% |
| Java 6 -server | 14.13 | 11.68 | 460,636 | 603 | 28% 24% 55% 14% |
| chameneos-redux | |||||
| Ruby JRuby | 306.86 | 143.98 | 52,116 | 928 | 39% 57% 64% 51% |
| Java 6 -server | 13.67 | 5.82 | 12,952 | 1377 | 59% 50% 54% 60% |
| k-nucleotide | |||||
| Ruby JRuby | 509.43 | 501.95 | 491,908 | 420 | 48% 10% 19% 24% |
| Java 6 -server | 46.28 | 13.60 | 476,316 | 1602 | 86% 92% 81% 81% |
| n-body | |||||
| Ruby JRuby | 1,571.28 | 1,561.80 | 208,456 | 1137 | 22% 26% 12% 40% |
| Java 6 -server | 23.70 | 23.74 | 12,608 | 1424 | 0% 100% 0% 0% |
| fasta | |||||
| Ruby JRuby | 514.44 | 511.14 | 266,924 | 760 | 17% 31% 24% 28% |
| Java 6 -server | 7.75 | 7.72 | 12,808 | 1240 | 1% 100% 0% 1% |
| fannkuch | |||||
| Ruby JRuby | 2,134.80 | 2,125.15 | 160,652 | 340 | 19% 34% 17% 31% |
| Java 6 -server | 65.43 | 17.94 | 13,940 | 1150 | 99% 99% 99% 68% |
| spectral-norm | |||||
| Ruby JRuby | 990.49 | 983.49 | 231,508 | 292 | 23% 31% 16% 31% |
| Java 6 -server | 15.93 | 4.07 | 12,736 | 950 | 97% 100% 98% 97% |
| mandelbrot | |||||
| Ruby JRuby | 4,237.20 | 4,213.82 | 226,932 | 313 | 21% 25% 16% 39% |
| Java 6 -server | 45.21 | 11.54 | 44,768 | 903 | 98% 98% 98% 99% |
Remember - those are just the fastest Ruby JRuby and Java 6 -server programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Ruby JRuby.
Maybe one of those other Ruby JRuby programs is fastest on a different OS/machine.
Remember - those are just the fastest Ruby JRuby 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.
jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) Server VM 1.6.0_18) [i386-java]
Home Page: 100% Pure-Java Implementation of the Ruby Programming Language
Download: http://jruby.org/download