summaryrefslogtreecommitdiff
path: root/benchmark/hash_ident_str.yml
blob: c2423778f7954651448c5a3d97c38e70bd2abbf3 (plain)
1
2
3
4
5
6
7
benchmark:
  hash_ident_str: |
    h = {}.compare_by_identity
    strs = ('a'..'z').to_a
    strs.each { |s| h[s] = s }
    200_000.times { strs.each { |s| h[s] } }
loop_count: 1