Now that this thread has bubbled back up to the top, you might also try
moving away from Apache Bench towards something else (my preferred HTTP
benchmarking tool is Faban,
http://faban.sunsource.net/ , but that might
well be overkill). Apache Bench has request generation happening in a
single thread, so it's possible (and likely if you are just getting a
hello-world type page) that you are actually benchmarking how fast AB
can generate new requests to be served: Not what you are interested in.
Marlon Moyer wrote:
> Thanks for turning me on to Apache Bench...I was using httperf and
> getting confusing results. I've got both the glassfish gem and
> glassfish server v3 installed on my system and I think me tinkering
> with both of them might have borked them. After I gave up on trying
> to get glassfish server working, I was able to get the gem to respond
> roughly as fast as Ruby 1.9 running webrick.
>
> Now, both jRuby and Ruby1.9 are multitudes faster than Ruby1.8. On my
> system though, Ruby1.9 fronted by passenger is definitely the fastest
> option right now.
>
> Still, it's awesome to have all these different deployment options
> available!
>
>
> On Jun 19, 2009, at 2:30 PM, Joseph Athman wrote:
>
>> How many requests are you running through to gather your numbers?
>> I've found that it usually takes a couple hundred requests to get
>> JRuby warmed up enough to really start seeing benefits. I use the
>> Apache bench command line tool to run a few thousand requests through
>> my application. While the requests run you can see the moment the
>> compiler kicks in the requests start going through so much faster.
>> Remember both the JVM itself and your Ruby code need to get warmed up
>> and optimized before you will see benefits.
>>
>> From my experience JRuby 1.3 and the Glassfish Gem were always faster
>> than passenger or mongrel.
>>
>> Joe
>>
>> On Fri, Jun 19, 2009 at 11:33 AM, Marlon Moyer <
marlon@...
>> <mailto:
marlon@...>> wrote:
>>
>> I've recently been testing jruby vs REE/Passenger. I've got a
>> rails v 2.3.2 project using mysql as a backend. I've used
>> jruby/mongrel and the glassfish gem. I can't get it running on
>> Glassfish server for some odd reason (always give me a "Module
>> not recognized" error when I deploy).
>>
>> Anyway, in all my testing, jruby is showing to be slower than
>> REE running under passenger or even REE running mongrel running
>> the site. When I run benchmarks like the one from Charles' blog
>> -- the Takeuchi function, jruby smokes REE.
>>
>> Is what I'm seeing normal?
>>
>> Thanks,
>>
>> --
>> Marlon
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>
http://xircles.codehaus.org/manage_email>>
>>
>>
>
> --
> Marlon
>
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email