Upgrade from Ruby 1.9.3 to Ruby 2.0.0 now!
TL;DR: Upgrade to Ruby 2.0.0 now!
This article is not a guide on upgrading. Plenty of tools make this easy (like RVM) and plenty of articles on the web that describe the process. This article looks at some nice speed boosts you’ll gain by upgrading. Ruby 2.0.0 is nearly a piece of cake to upgrade. On a fairly large application, not one of my tests failed when I switched from 1.9.3 to 2.0.
After upgrading, you’ll notice some speed boosts. Here are some I measured. These continue of from the last set of benchmarks I did last year (“Dramatically speeding up Ruby 1.9.3”) and using the same computer and compile flags as I used in that article.
% time ruby -e "count = 0; while(count < 100000000); count = count + 1; end; puts count"
% time bundle exec rails runner 'true'
% time bundle exec rake routes
% time bundle exec rspec spec
Before: 3m 17s
After: 2m 53s
The speed boosts are good, and as the ruby GC (among other things) gets better, these will improve even more. The upgrade is simple, and issue free. You’re doing yourself and those that work with you a dis-service if you don’t plan to upgrade to Ruby 2.0.0 soon.