Thin is the only standalone web server that’s compatible with both 1.8 and 1.9, so let’s test how they go head to head.
I did just the most cursory of tests, using a recent web site I’d been involved on, running Rails 2.3.2. Tests are with and without the DB turned on, which slowed us down by a factor of 10 and wasn’t testing Ruby so much as this dog-slow laptop disk anyway.
DB off:
1.9.1: 212.15 req/sec
1.8.6: 178.64 req/sec
DB on:
1.9.1: 23.53 req/sec
1.8.6: 19.49 req/sec
So for this particular (pretty simple) site, we get about a 10-15% speed increase, which is surprisingly little - it “feels” faster than that. I look forward to testing 1.9.1 further on more complex installations, and with Passenger. Locally, I’ve switched over to 1.9.1 for most development now, and will move over completely once Rails gets its fucking act together.
March 27th, 2009 at 5:27 pm
! thank GOD you have been posting. I thought you were DEAD!
March 27th, 2009 at 8:47 pm
Good to see some “real world” (ie. running an actual app rather than a microbenchmark) results.