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