JRuby trunk == better/faster Rails performance
So I remember a couple months ago playing with JRuby, and while fibonacci was super fast, Rails was way off.. ActiveRecord performance 6x-10x slower than MRI…
Looks like its getting better. Disclaimer: These are really really simple non-scientific tests.
Local mysql database, MYISAM, table people, with 2 columns, (id, name). 100k rows
> jruby -J-server -O script/console production >> Benchmark.measure {10000.times {Person.find :first}}.total => 2.286
> ./script/console production >> Benchmark.measure {10000.times {Person.find :first}}.total => 1.7
Mongrel > ab -n 1000 http://localhost:3001/people/1 Requests per second: 95.02 [#/sec] (mean)
On Glassfish v3 with: RAILS_ENV=production jruby -J-server -O -S glassfish_rails glass2, after a bit of warmup.
> ab -n 1000 http://localhost:8080/glass2/people/1 Requests per second: 48.25 [#/sec] (mean)
turning logging mostly off
> ab -n 1000 http://localhost:8080/glass2/people/1 Requests per second: 56.70 [#/sec] (mean)
All in all, thats impressive. Congrats to Charles, Ola, and the whole JRuby crew. I dont think i’ll be putting this in production yet, but I’m very interested to hear from others that have.

Re-used your benchmarks, JRuby 1.1.1 is speeding things up, Rails perf is still in need of some attention. I know the topic is important to those who work on the project.
http://blog.huikau.com/2008/04/29/some-rails-perf-numbers-on-jruby-111/