summaryrefslogtreecommitdiff
path: root/jni/ruby/benchmark/bm_hash_aref_str.rb
blob: 19439b061b35bc37715b14944097fcfecdedca4c (plain)
1
2
3
4
h = {}
strs = ('a'..'z').to_a.map!(&:freeze)
strs.each { |s| h[s] = s }
200_000.times { strs.each { |s| h[s] } }