/mobile Handheld Friendly website
x64 Ubuntu : Intel® Q6600® one core |
Each chart bar shows, for one unidentified benchmark, how much the fastest Ruby JRuby program used compared to the fastest Ruby 2.0 program.
These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.
Each table row shows, for one named benchmark, how much the fastest Ruby JRuby program used compared to the fastest Ruby 2.0 program.
| Ruby JRuby used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| fannkuch-redux | 1/4 | 98× | ± | |
| mandelbrot | 1/2 | 98× | ± | |
| n-body | ± | 98× | ± | |
| spectral-norm | ± | 79× | 2× | |
| k-nucleotide | ± | 4× | ± | |
| regex-dna | ± | 5× | ± | |
| binary-trees | ± | 2× | ± | |
| pidigits | 2× | 40× | ± | |
| fasta | 2× | 3× | ± | |
| reverse-complement | 3× | 8× | ± | |
| Ruby JRuby used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | 1/4 | 1/4 | ± | ± | 2× | 3× | 3× |
± read the measurements and then read the program source code.
These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.
For each named benchmark, measurements of the fastest Ruby JRuby program are shown for comparison against measurements of the fastest Ruby 2.0 program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| fannkuch-redux | |||||
| Ruby JRuby | 809.08 | 809.40 | 599,808 | 384 | 0% 0% 0% 100% |
| Ruby 2.0 | 3,341.03 | 3,341.91 | 6,148 | 384 | 0% 0% 0% 100% |
| mandelbrot | |||||
| Ruby JRuby | 929.63 | 931.19 | 599,016 | 307 | 0% 0% 0% 100% |
| Ruby 2.0 | 1,832.09 | 1,832.55 | 6,136 | 307 | 0% 0% 0% 100% |
| n-body | |||||
| Ruby JRuby | 524.17 | 525.00 | 602,312 | 1137 | 0% 0% 0% 100% |
| Ruby 2.0 | 666.58 | 666.72 | 6,172 | 1137 | 0% 0% 0% 100% |
| spectral-norm | |||||
| Ruby JRuby | 252.52 | 252.96 | 613,860 | 776 | 0% 0% 0% 100% |
| Ruby 2.0 | 320.35 | 320.45 | 7,732 | 326 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Ruby JRuby | 460.10 | 460.99 | 925,096 | 540 | 0% 0% 0% 100% |
| Ruby 2.0 | 544.77 | 545.08 | 227,564 | 540 | 0% 0% 0% 100% |
| regex-dna | |||||
| Ruby JRuby | 41.64 | 41.68 | 2,039,936 | 417 | 0% 0% 0% 100% |
| Ruby 2.0 | 30.07 | 30.09 | 393,896 | 417 | 0% 0% 0% 100% |
| binary-trees | |||||
| Ruby JRuby | 293.65 | 294.00 | 994,648 | 412 | 0% 0% 0% 100% |
| Ruby 2.0 | 199.54 | 199.69 | 436,916 | 439 | 0% 0% 0% 100% |
| pidigits | |||||
| Ruby JRuby | 20.08 | 20.15 | 602,740 | 242 | 0% 0% 0% 100% |
| Ruby 2.0 | 9.48 | 9.49 | 14,988 | 242 | 0% 0% 1% 100% |
| fasta | |||||
| Ruby JRuby | 225.77 | 230.92 | 604,960 | 760 | 0% 0% 0% 100% |
| Ruby 2.0 | 106.88 | 106.93 | 223,864 | 772 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Ruby JRuby | 24.36 | 24.44 | 1,036,344 | 255 | 0% 0% 0% 100% |
| Ruby 2.0 | 9.03 | 9.04 | 128,252 | 255 | 0% 0% 0% 100% |
| fasta-redux | |||||
Remember - those are just the fastest Ruby JRuby and Ruby 2.0 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 Ruby 2.0 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.7.2 (1.9.3p327) 2013-01-04 302c706 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_11-b21 [linux-amd64]
Home Page: 100% Pure-Java Implementation of the Ruby Programming Language
"So You Want To Optimize Ruby" (So You want to optimize an implementation of the Ruby language.)
Download: http://jruby.org/download