r/programming • • Feb 24 '13

Ruby 2.0.0

http://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/
600 Upvotes

193 comments sorted by

View all comments

5

u/Mjiig Feb 24 '13

Can anyone comment on what Ruby performance is like now (compared to ruby 1.8 ideally). I know performance is far from the highest priority for a language like ruby, but it's one of the two problems that led to me stopping using ruby for most things.

4

u/jes5199 Feb 25 '13

things got much faster in 1.9, because ruby started using bytecode internally instead of the embarrassing AST-interpretation thing in was doing before. Expect it to feel on par with python.

-1

u/henk53 Feb 25 '13

Expect it to feel on par with python.

Ouch! (still very slow thus)

0

u/yogthos Feb 26 '13

Given how popular Python is, it's clearly fast enough for a ton of stuff.

1

u/drbrain Feb 25 '13

The RDoc tests run twice as fast in 2.0.0 and 1.9.3 as in 1.8.7 (the operations the RDoc tests perform don't take advantage of many optimizations in 2.0.0). There's a small speedup between 2.0.0 and 1.9.3, but it's likely at the limit of statistical significance.

The RubyGems tests run about 30% faster in 2.0.0 and 1.9.3 as in 1.8.7 (the tests primarily read and write files so IO is the bottleneck).

-4

u/aescnt Feb 24 '13

Ridiculously good. Expect things to run much, much faster in 2.0 than 1.9. I don't have any numbers for you, but I'm sure they're not hard to find.