From: "naruse (Yui NARUSE)" Date: 2013-08-07T12:24:40+09:00 Subject: [ruby-core:56427] [ruby-trunk - Bug #8012][Assigned] Performance degradation in 2.0.0p0 Issue #8012 has been updated by naruse (Yui NARUSE). Status changed from Open to Assigned Assignee set to ko1 (Koichi Sasada) Priority changed from High to Normal Target version set to current: 2.1.0 ---------------------------------------- Bug #8012: Performance degradation in 2.0.0p0 https://bugs.ruby-lang.org/issues/8012#change-40959 Author: ram (Munagala Ramanath) Status: Assigned Priority: Normal Assignee: ko1 (Koichi Sasada) Category: Target version: current: 2.1.0 ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux] Backport: $ 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. -- http://bugs.ruby-lang.org/ _______________________________________________ ruby-core mailing list ruby-core@ruby-lang.org http://lists.ruby-lang.org/cgi-bin/mailman/listinfo/ruby-core