summaryrefslogtreecommitdiff
path: root/benchmark/hash_ident_flo.rb
blob: 0c7edfed3ebeeea2a234d6648474676242ff710a (plain)
1
2
3
4
h = {}.compare_by_identity
strs = (1..10000).to_a.map!(&:to_f)
strs.each { |s| h[s] = s }
50.times { strs.each { |s| h[s] } }