Is anyone else seeing significantly worse performance after upgrading an app to Rails3?
Two datapoints after upgrading an app:
- an action that averages ~550ms in Rails2.3.5 averages nearly twice as long (1020ms) in Rails3beta2.
- startup time is much longer in Rails2. To demonstrate, I’m using runner:
~/projects/rails/tempo(master) $ time ruby script/runner ‘puts “Rails 2 here”’
Rails 2 here
~/projects/rails/tempo(rails3) $ time rails runner ‘puts “Rails 3 here”’
Rails 3 here
That’s 5x longer for Rails 3. Same app, same Ruby version (1.8.7p249). Anyone seeing something similar, or (hopefully) better?
Andre, Rails 3 is still currently in beta. Thus, the Rails core team are still fixing relevant bugs, cleaning up overall functionality, and
the optimizations will come. Also, Rails 3 performs much better with Ruby 1.9.2 than 1.8.7 but your mileage will vary depending on
your platform. In short, Rails 3 beta has been deployed into many production environments but it hasn’t been released as production
ready system. The release candidates (RC) should be coming soon after the beta period which will be fully optimized for running your
performance tests before we see a final release.
ps: I’m basing this information on previous releases of Rails where we go through the following phases: alpha, beta, release candidate,
and final. Thus, the software development work flow may or may not have changed for this version of Rails.