# Ruby 1.9.x Rails Performance

**URL:** <https://www.ruby-forum.com/t/ruby-1-9-x-rails-performance/172492>\
**Category:** Rails\
**Created:** [July 22, 2009, 10:50am UTC](https://www.ruby-forum.com/t/ruby-1-9-x-rails-performance/172492 "2009-07-22T10:50:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [July 22, 2009, 10:50am UTC](https://www.ruby-forum.com/t/ruby-1-9-x-rails-performance/172492/1 "2009-07-22T10:50:19Z")

</div>

Hello All,

I read an article a while back about performance in Ruby. I remember a  
lot of talk about vast improvements in ruby 1.9.x (completely new  
compiler code). I’m thinking about making the upgrade on my Redhat 5  
server and I thought to offer up some questions… any opinions will  
be appreciated.

Has anyone made that upgrade for their own rails server?  
Will I need to do anything special to keep mongrel running?  
Has anyone noticed a significant performance boost in their rails apps  
as a result of it?  
Was there any problems with rails code or custom code breaking down?

Thanks  
-Josh

---

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [July 22, 2009, 11:17am UTC](https://www.ruby-forum.com/t/ruby-1-9-x-rails-performance/172492/2 "2009-07-22T11:17:49Z")

</div>

On Wed, Jul 22, 2009 at 1:49 AM, Josh [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello All,
> 
> I read an article a while back about performance in Ruby. I remember a  
> lot of talk about vast improvements in ruby 1.9.x (completely new  
> compiler code). I’m thinking about making the upgrade on my Redhat 5  
> server and I thought to offer up some questions… any opinions will  
> be appreciated.
> 
> Has anyone made that upgrade for their own rails server?

Yes, I have been using Ruby 1.9.1 in production for several months now.  
Also, in your research, I would also take a look at JRuby and the  
glassfish  
gem.

> Will I need to do anything special to keep mongrel running?

I would recommend using Passenger or thin.

> Has anyone noticed a significant performance boost in their rails apps  
> as a result of it?

Yes, I have noticed significant performance in Ruby code execution.  
However,  
there’s no silver-bullet and Ruby language is only one part of the  
performance  
puzzle. Also, you don’t want to go down the path of premature  
optimization.  
Furthermore, it really depends on what you’re doing in your Rails  
application.

> Was there any problems with rails code or custom code breaking down?

Rails code worked as expected being that Rails tests are run against  
both  
Ruby 1.8.x and Ruby 1.9.1.

Good luck,

-Conrad
