Bug #8012

Performance degradation in 2.0.0p0

Added by Munagala Ramanath about 1 year ago. Updated 3 months ago.

[ruby-core:53126]
Status:Assigned
Priority:Normal
Assignee:Koichi Sasada
Category:-
Target version:current: 2.2.0
ruby -v:ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux] Backport:

Description

$ 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.

History

#1 Updated by Yui NARUSE 9 months ago

  • Status changed from Open to Assigned
  • Assignee set to Koichi Sasada
  • Priority changed from High to Normal
  • Target version set to 2.1.0

#2 Updated by Hiroshi SHIBATA 3 months ago

  • Target version changed from 2.1.0 to current: 2.2.0

Also available in: Atom PDF