Please leave comments on the post if you have any issues. amerine - February 24, 2010 18:57
Rails 3 works well on simple scaffold blog application with ruby 1.9.2 for me, except it works slower than Rails 2 :(
Try this:
1. generate scaffold title:string body:text (sqlite3)
2. run server in production mode
3. ab -n 1000 http://localhost:3000/posts (on 20 records)
I've got about 50 req/s for Rails 2 and only 35 req/s for the same page, which is strange after all that buzz about performance optimizations in Rails 3. It seems all improvements was ruby 1.8.7 only (haven't checked if Rails 3 is really faster on 1.8.7 though).
Also in development environment performance degradation comparing to Rails 2 is even worse :(
wondering - February 25, 2010 11:51
wondering: I'm wondering if that's because you have Mongrel installed and so Rails 2's ./script/server is using that whereas you're stuck with WEBrick on 1.9 with "rails s"..?PeterCooper - February 26, 2010 00:16
@wondering try it with something like unicorn.Chris - February 26, 2010 03:23
@PeterCooper Well, no. I've double checked the list of gems for Rails 2 and Rails 3 to be sure(I use RVM gem sets to separate installs). I've also benchmarked Rails 3 and Rails 2 using WEBrick and Mongrel and have similar results: Rails 3 is slower in both cases (WEBrick is not much slower than Mongrel at least on 1 concurrent request).
@Chris and @PeterCooper I'm wondering if you have different results, guys.wondering - February 26, 2010 07:41
Comments