Project

General

Profile

Actions

Bug #1650

closed

Time range === is slow

Added by kmeaw (Dmitry Bilunov) almost 15 years ago. Updated over 12 years ago.

Status:
Rejected
Target version:
ruby -v:
ruby 1.9.1p129 (2009-05-12 revision 23412) [x86_64-linux]
Backport:
[ruby-core:23908]

Description

=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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0