Okay that table got completely screwed. I will try once more or you
may get these results here http://pastie.org/594583
Language Time for 100 iterations Times slower
than java with -server
java1.6 –server 0.18 1
Ruby1.8.7 7.78 44.07
Ruby1.9.2 4.2 23.78
Jruby 2.5
14.16
Jruby1.3.1—sever 2.31 13.1
java1.6 -client 0.18 1.01
python 2.6.2 3.04 17.21
Jruby is the fastest here with 13 times slower than java. I am sure
there
are other command line options which may allow jruby to perform faster,
that
I am not aware of. Also shows ruby1.9.2 is slower than python 2.6.2
Ditto. CPU-intensive code will often be as much as 2x faster with --server.
One of the machines I tested on only had the client vm, so I didn’t
include those numbers from the other machines either. Â However,
–server and --fast on the other machines didn’t make much of an
impact on this short test: varying from a nice speed boost on some
runs to slower on others (the test program did not do any pre-test
warmup).
May simply be too short of a test, or the bottleneck isn’t in
execution…but I’m sure with some poking around we could get JRuby to
have the fastest result.
Ditto. CPU-intensive code will often be as much as 2x faster with --server.
One of the machines I tested on only had the client vm, so I didn’t
include those numbers from the other machines either. However,
–server and --fast on the other machines didn’t make much of an
impact on this short test: varying from a nice speed boost on some
runs to slower on others (the test program did not do any pre-test
warmup).