Re: Slow startup using ruby 1.9.2 vs 1.8.7

Ken Collins
Mon, 10 Jan 2011 13:30:41 -0000

I somewhat mentioned this [1] when I was running ActiveRecord tests under 1.9.2
vs 1.8.7. Someone else mentioned there was a bug fix [2] which I can see is
applied to both 3-0-stable/2-3-stable. Even though after this, I still found
1.9.2 to be way slower. I never did the legwork to find out if it was startup
time or otherwise.

I just tested a project of mine on rails 3.0.3 under the latest 1.9.2 and 1.8.7
and I can confirm your results from the other thread. I can see boot times and
tests taking twice as long under 1.9.2 vs 1.8.7. I too would love to see more
investigation and a resolution to this.

[1]
http://groups.google.com/group/rubyonrails-core/browse_thread/thread/fb4bbf2cc314d51e
[2] https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5410


 - Ken


On Jan 10, 2011, at 7:30 AM, Colin Law wrote:

> There has been an ongoing thread [1] on the RoR talk list about
> startup time using Rails 3 with Ruby 1.9.2.  Do not be confused by the
> subject of the thread, which mentions 1.9.1, it has moved on to 1.9.2.
> The gist is that on Ubuntu (and possibly Macs) the startup time when
> using 1.9.2 can be very much greater then 1.8.7, even with a minimal
> app.  This applies to running tests, migrations, server startup and so
> on.
>
> Can anyone here throw any light on this?
>
> Thanks in advance
>
> Colin
>
> [1]