summaryrefslogtreecommitdiff
path: root/benchmark/hash_aref_str.yml
blob: 0790320ec5182fe55286c8b374079e194857a2e0 (plain)
1
2
3
4
5
6
7
benchmark:
  hash_aref_str: |
    h = {}
    strs = ('a'..'z').to_a.map!(&:freeze)
    strs.each { |s| h[s] = s }
    200_000.times { strs.each { |s| h[s] } }
loop_count: 1