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