Forum: Ruby-core [ruby-trunk - Bug #8012][Open] Performance degradation in 2.0.0p0

Posted by Bug Free (x17y19)
on 2013-03-04 16:57
(Received via mailing list)
Issue #8012 has been reported by ram (Munagala Ramanath).

----------------------------------------
Bug #8012: Performance degradation in 2.0.0p0
https://bugs.ruby-lang.org/issues/8012

Author: ram (Munagala Ramanath)
Status: Open
Priority: High
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]


$ ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]

I'm running a simple CPU intensive benchmark:

puts (0..11).to_a.permutation.inject(0) { |m, _| m += 1 }

This takes around 158s with 1.9.3 and 200s with 2.0.0p0 which seems
like a substantial degradation.

Running with -rprofile shows a large number of calls to
"nil#" in 2.0.0p0 which are absent in 1.9.3

Please see the thread in http://www.ruby-forum.com/topic/4411570#new
for more details.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.