Stephen Bannasch
2011-Sep-07 23:24 UTC
large rails app starts up 2.7x faster in 1.9.3dev than 1.9.2p290
I''ve got a large Rails app we are porting from v2.3.12 to v3.0.10. The app takes almost 60s to startup in development mode using Ruby 1.9.2-p290 on my 2.66 GHz Intel Core i7 MacBook Pro . The app starts up about 2.7x faster on Ruby 1.9.3dev and the RSpec model tests run about 50% faster. Will the 1.9.3 RC release have similar performance to 1.9.3dev? Ruby 1.9.2-p290 $ ruby -v; time bin/rails runner "" ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0] real 0m50.333s user 0m45.566s sys 0m2.961s $ bin/rspec spec Finished in 502.96 seconds 1792 examples, 492 failures, 53 pending Ruby 1.9.3dev $ ruby -v; time bin/rails runner "" ruby 1.9.3dev (2011-09-07 revision 33211) [x86_64-darwin10.8.0] real 0m18.275s user 0m15.750s sys 0m1.587s $ bin/rspec spec/ Finished in 345.59 seconds 1792 examples, 492 failures, 53 pending -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Ryan Bigg
2011-Sep-07 23:26 UTC
Re: large rails app starts up 2.7x faster in 1.9.3dev than 1.9.2p290
Given that 1.9.3.dev is effectively an "immature" 1.9.3 RC, I would say, yes, it will have a similar performance. However, I would not go using 1.9.3 at this stage as it has not yet been officially released. On Thursday, 8 September 2011 at 9:24 AM, Stephen Bannasch wrote:> I''ve got a large Rails app we are porting from v2.3.12 to v3.0.10. > > The app takes almost 60s to startup in development mode using Ruby 1.9.2-p290 on my 2.66 GHz Intel Core i7 MacBook Pro . > > The app starts up about 2.7x faster on Ruby 1.9.3dev and the RSpec model tests run about 50% faster. > > Will the 1.9.3 RC release have similar performance to 1.9.3dev? > > Ruby 1.9.2-p290 > > $ ruby -v; time bin/rails runner "" > ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0] > real 0m50.333s > user 0m45.566s > sys 0m2.961s > > $ bin/rspec spec > Finished in 502.96 seconds > 1792 examples, 492 failures, 53 pending > > Ruby 1.9.3dev > > $ ruby -v; time bin/rails runner "" > ruby 1.9.3dev (2011-09-07 revision 33211) [x86_64-darwin10.8.0] > real 0m18.275s > user 0m15.750s > sys 0m1.587s > > $ bin/rspec spec/ > Finished in 345.59 seconds > 1792 examples, 492 failures, 53 pending > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com (mailto:rubyonrails-core@googlegroups.com). > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com (mailto:rubyonrails-core+unsubscribe@googlegroups.com). > For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Rizwan Reza
2011-Sep-08 11:07 UTC
Re: large rails app starts up 2.7x faster in 1.9.3dev than 1.9.2p290
Though what Ryan Bigg has said is true, Ruby 1.9.3 is and will stay faster mainly due to the load.c performance patch. Here are a couple articles explaining that: http://www.rubyinside.com/ruby-1-9-3-preview-1-released-5229.html http://www.rubyinside.com/ruby-1-9-3-faster-loading-times-require-4927.html On Sep 8, 3:26 am, Ryan Bigg <radarliste...@gmail.com> wrote:> Given that 1.9.3.dev is effectively an "immature" 1.9.3 RC, I would say, yes, it will have a similar performance. However, I would not go using 1.9.3 at this stage as it has not yet been officially released. > > > > > > > > On Thursday, 8 September 2011 at 9:24 AM, Stephen Bannasch wrote: > > I''ve got a large Rails app we are porting from v2.3.12 to v3.0.10. > > > The app takes almost 60s to startup in development mode using Ruby 1.9.2-p290 on my 2.66 GHz Intel Core i7 MacBook Pro . > > > The app starts up about 2.7x faster on Ruby 1.9.3dev and the RSpec model tests run about 50% faster. > > > Will the 1.9.3 RC release have similar performance to 1.9.3dev? > > > Ruby 1.9.2-p290 > > > $ ruby -v; time bin/rails runner "" > > ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0] > > real 0m50.333s > > user 0m45.566s > > sys 0m2.961s > > > $ bin/rspec spec > > Finished in 502.96 seconds > > 1792 examples, 492 failures, 53 pending > > > Ruby 1.9.3dev > > > $ ruby -v; time bin/rails runner "" > > ruby 1.9.3dev (2011-09-07 revision 33211) [x86_64-darwin10.8.0] > > real 0m18.275s > > user 0m15.750s > > sys 0m1.587s > > > $ bin/rspec spec/ > > Finished in 345.59 seconds > > 1792 examples, 492 failures, 53 pending > > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. > > To post to this group, send email to rubyonrails-core@googlegroups.com (mailto:rubyonrails-core@googlegroups.com). > > To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com (mailto:rubyonrails-core+unsubscribe@googlegroups.com). > > For more options, visit this group athttp://groups.google.com/group/rubyonrails-core?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Aaron Patterson
2011-Sep-08 18:45 UTC
Re: large rails app starts up 2.7x faster in 1.9.3dev than 1.9.2p290
On Wed, Sep 07, 2011 at 07:24:14PM -0400, Stephen Bannasch wrote:> I''ve got a large Rails app we are porting from v2.3.12 to v3.0.10. > > The app takes almost 60s to startup in development mode using Ruby 1.9.2-p290 on my 2.66 GHz Intel Core i7 MacBook Pro . > > The app starts up about 2.7x faster on Ruby 1.9.3dev and the RSpec model tests run about 50% faster.You should try with 1.9.2-head. I think this will be fixed in the next 1.9.2 patch release.> Will the 1.9.3 RC release have similar performance to 1.9.3dev?Yes. -- Aaron Patterson http://tenderlovemaking.com/
Stephen Bannasch
2011-Sep-10 20:23 UTC
Re: large rails app starts up 2.7x faster in 1.9.3dev than 1.9.2p290
At 11:45 AM -0700 9/8/11, Aaron Patterson wrote:>On Wed, Sep 07, 2011 at 07:24:14PM -0400, Stephen Bannasch wrote: >> I''ve got a large Rails app we are porting from v2.3.12 to v3.0.10. >> >> The app takes almost 60s to startup in development mode using Ruby 1.9.2-p290 on my 2.66 GHz Intel Core i7 MacBook Pro . >> >> The app starts up about 2.7x faster on Ruby 1.9.3dev and the RSpec model tests run about 50% faster. > >You should try with 1.9.2-head. I think this will be fixed in the next >1.9.2 patch release.Startup times on ruby 1.9.2 head is about twice as fast: $ ruby -v; time bin/rails runner "" ruby 1.9.2p312 (2011-08-11 revision 32926) [x86_64-darwin10.8.0] real 0m25.634s user 0m23.242s sys 0m2.057s -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.