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

Author: Dmitry Bilunov
Status: Open, Priority: Normal
Category: lib
ruby -v: ruby 1.9.1p129 (2009-05-12 revision 23412) [x86_64-linux]

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


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