Issue #1650 has been updated by Yui NARUSE.

Status changed from Open to Assigned
Assignee set to Akira Tanaka


----------------------------------------
Bug #1650: Time range === is slow
http://redmine.ruby-lang.org/issues/1650

Author: Dmitry Bilunov
Status: Assigned
Priority: Normal
Assignee: Akira Tanaka
Category: DOC
Target version: 
ruby -v: ruby 1.9.1p129 (2009-05-12 revision 23412) [x86_64-linux]


=begin
 The following program runs N times slower in ruby19 compared to ruby18.
 N depends on the input range size.
 
 dev@rails ~ $ time ruby19 -rtime -e '(Time.now - 1000000 .. Time.now) === (Time.now - 3)'
 
 real    0m0.723s
 user    0m0.709s
 sys     0m0.013s
 dev@rails ~ $ time ruby18 -rtime -e '(Time.now - 1000000 .. Time.now) === (Time.now - 3)'
 
 real    0m0.043s
 user    0m0.039s
 sys     0m0.005s
=end



-- 
http://redmine.ruby-lang.org