Bug #140

[PATCH] Set#== performance improvement

Added by NoKarma (Arthur Schreiber) almost 4 years ago. Updated about 1 year ago.

[ruby-core:17203]
Status:Closed Start date:06/11/2008
Priority:Normal Due date:
Assignee:knu (Akinori MUSHA) % Done:

0%

Category:-
Target version:1.9.2
ruby -v:-

Description

Without this patch:

Set#== with Set:               2.350000   1.100000   3.450000 (  3.670881)
Set#== with SortedSet:         2.430000   1.100000   3.530000 (  3.721129)
SortedSet#== with SortedSet:   2.430000   1.090000   3.520000 (  3.778875)

With this patch:

Set#== with Set:               0.050000   0.000000   0.050000 (  0.048722)
Set#== with SortedSet:         2.230000   1.100000   3.330000 (  3.630617)
SortedSet#== with SortedSet:   0.040000   0.000000   0.040000 (  0.049494)

set_equal_value.patch (777 Bytes) NoKarma (Arthur Schreiber), 06/11/2008 09:01 am

set_bench.rb (1 kB) NoKarma (Arthur Schreiber), 06/11/2008 09:03 am

History

Updated by NoKarma (Arthur Schreiber) almost 4 years ago

Attached the benchmark script.

Updated by marcandre (Marc-Andre Lafortune) over 2 years ago

  • Status changed from Open to Closed
  • Target version set to 1.9.2
  • ruby -v set to -
Applied in changeset 24910

Also available in: Atom PDF