ruby-2.0.0-p0

16 views
Skip to first unread message

Cam Allen

unread,
Apr 29, 2013, 6:40:00 AM4/29/13
to ox...@googlegroups.com
Hi All,

Anyone running rails apps using ruby 2.0.0-p0? 

Just wondering if the new ruby features warrant an upgrade.

Thoughts?

Cheers,
Cam 

James Harrison

unread,
Apr 29, 2013, 7:18:56 AM4/29/13
to ox...@googlegroups.com
I migrated a couple of weeks ago - a few things broke (libraries like
grit aren't quite there) but mostly stuff Just Worked.

Not noticed a significant performance boost or anything, but looks like
a fairly safe upgrade for the purposes of keeping up with Ruby development.

--
Cheers,
James Harrison

James Mead

unread,
Apr 29, 2013, 7:25:20 AM4/29/13
to ox...@googlegroups.com
I'm currently using Ruby 2.0.0-p0 with Rails 3.2.13 on a project. I wasn't party to the decision to use it, but I haven't run into any problems (yet). Since it's a green-field project, I don't really have anything to compare it with performance-wise.

James.

Cam Allen

unread,
Apr 29, 2013, 11:26:30 AM4/29/13
to ox...@googlegroups.com
Thanks for the feedback!

I plan to do a 1.9.3-head vs 2.0.0-p0 comparison (if the gems install) and gather some metrics over my test suites, hopefully i see a speed up of some sort!
Cam

Jocke Selin

unread,
Apr 29, 2013, 2:27:14 PM4/29/13
to ox...@googlegroups.com
Hi,

A bit late perhaps, but we're still on the 1.9.3 branch so, nothing to report apart from that I'm very keen to hear what experiences you've had with 2.0. So thanks for sharing that. :)

/Jocke

Cam Allen

unread,
Apr 30, 2013, 5:42:04 AM4/30/13
to ox...@googlegroups.com
Hi all, 

Here are some results from a simple benchmark for ruby-1.9.3-head vs ruby-2.0.0-p0. I ran 2 tests each for both rspec and cucumber using my laptop at home and my work computer. I've compiled a graph for my results.

I was surprised at the actual numbers, my unit tests are slightly faster my integration tests are a bit slower. Please note: this is only a simple benchmark and i would need to test further taking into account RAM usage, overall run times (i just used the results from the test suites themselves), caching, etc. 

Hopefully this is informative however my setup may be very different to yours. Happy to discuss what i am running for app / testing architectures.

Cheers,
Cam

Jo Potts

unread,
Apr 30, 2013, 6:06:04 AM4/30/13
to ox...@googlegroups.com
Good stuff. So the conclusion is (?) that there's not a massive change, and it's probably not worth the potential issues upgrading an existing production system (yet). But for new rails builds use 2.0.0 as it's the recommended ruby - http://weblog.rubyonrails.org/2013/2/25/Rails-4-0-beta1

Cam Allen

unread,
Apr 30, 2013, 6:30:12 AM4/30/13
to ox...@googlegroups.com
Yep, I agree with that conclusion.

Some interesting reading about GC in ruby 2.0.0, i think there will be memory savings (especially in the multi process fork model). I guess i'll have to benchmark my server running multiple apps now!

Cam
Reply all
Reply to author
Forward
0 new messages