What ruby ​​version / assembly works best with rails 3?

I'm having trouble deciding which version / assembly of ruby ​​is used with the latest beta versions of rails. I used 1.8.7, but over time the server will use too much memory and will start to slow down and ultimately not work at all. Which version / build worked best for you?

+4
source share
7 answers

Using 1.9.2 without any problems. There were some problems with encodings and encodings from 1.9.1

+5
source

We had problems with 1.8.7, so we switched to 1.9.2, and since then we have not had any problems. Also 1.9 is faster, so I suggest trying with 1.9.2.

+1
source

1.9.1 reported much faster.

0
source

One comment from http://weblog.rubyonrails.org/2010/2/5/rails-3-0-beta-release/ mentions the following:

Ruby1.9 Users Before installing Rails 3, upgrade your system, that is,

gem update --system 

If you used rubygems-update instead, you can remove it first:

 gem uninstall rubygems-update gem update --system 

Hope this helps

0
source

1.8.7 or 1.9.2 I would recommend jruby 1.8.7

0
source

I had no problems with Rails 3 with Ruby 1.9.2, but noticed that one particularly bad report worked 35% faster.

Ruby 1.8.7

Startup 1 Completed 200 OK at 20797ms (Views: 18662.2ms | ActiveRecord: 253.5ms | Sphinx: 0.0ms)

Run 2 Completed 200 OK at 20300ms (Views: 18316.7ms | ActiveRecord: 312.1ms | Sphinx: 0.0ms)

Run 3 Completed 200 OK in 19285ms (Views: 17309.8ms | ActiveRecord: 254.3ms | Sphinx: 0.0ms)

Medium: (20797 + 20300 + 19285) / 3 = 20127

Ruby 1.9.2

Startup 1 Completed 200 OK at 13499ms (Views: 11687.0ms | ActiveRecord: 273.6ms | Sphinx: 0.0ms)

Run 2 Completed 200 OK at 12682ms (Views: 11176.2ms | ActiveRecord: 264.9ms | Sphinx: 0.0ms)

Run 3 Completed 200 OK at 12692ms (Views: 11218.8ms | ActiveRecord: 253.0ms | Sphinx: 0.0ms)

Average value: (13499 + 12682 + 12692) / 3 = 12958

(20127 - 12958) / 20127 = decrease by 35.6%

0
source

Source: https://habr.com/ru/post/1308849/


All Articles