Comparing Rails 2.0 to 1.2 for speed and memory

Posted by David March 18, 2008 @ 07:23 PM

Hongli Lai has compared a dummy scaffold application from Rails 1.2 to Rails 2.0 and found the latter to be 30-50% faster. That’s great to see.

But what I think is even more interesting is the progress we’ve been making on performance optimizations for more substantial applications. Rails 2.0 made a lot of progress for applications with lots of assets and for ones with big routes.rb files. The forthcoming Rails 2.1 will move things forward even further.

UPDATE: Hongli also investigated memory consumption on 1.2 vs 2.0 and found 2.0 to be significantly slimmer. Nice!

Posted in Sightings | 14 comments

Comments

  1. steph thirion on 18 Mar 20:23:

    great! any predictions on when 2.1 might be released?

  2. Tim Harper on 18 Mar 20:38:

    I’ve noticed performance improvements in rails 2.0, without having to benchmark it :) This confirms that hunch.

    Great news, indeed!

  3. Nate on 18 Mar 20:55:

    @Steph, how about we try and predict the release date of 2.1 together? We did pretty good on predicting Rails 2.0, we had Nov 8th predicted about a month ahead of time. It was pretty helpful to have an idea when planning our development schedule.

  4. Gabe da Silveira on 18 Mar 21:13:

    Oh hell yes! I’m gonna make so much money on that :)

  5. Brian Cardarella on 18 Mar 22:59:

    Any news on getting Ruby 1.9 support in any future Rails releases?

  6. Brian Cardarella on 18 Mar 23:01:

    Never mind my last comment, I failed to check: http://dev.rubyonrails.org/report/68

    Ruby 1.9 support is listed

  7. Fürbitten on 19 Mar 19:42:

    It sounds good…

  8. Shawn on 21 Mar 05:14:

    @Brian Cardarella

    I just use Merb. Merb is thread-safe, Ruby 1.9 compliant, uses less memory and is faster than Rails.

  9. Nils on 21 Mar 14:39:

    Great news. It sounds really good.

  10. SmokeUndMirrors on 22 Mar 05:45:

    @shawn

    That’s because you are totally awesomner than all us Rails loozers.

  11. Jim on 22 Mar 17:06:

    @SmokeUndMirrors

    I think you missed the point. Merb is simply another option with its own upsides (listed by Shawn) and its own downsides.

  12. http://www.abstauben24.de on 22 Mar 17:56:

    It sounds REALLY good..nice!

  13. Heiko on 22 Mar 18:22:

    You are always my Ruby-Inspiration!

  14. click2asia on 01 Apr 01:48:

    Great. Now I want to know what makes 2.0 faster than 1.2