summaryrefslogtreecommitdiff
path: root/benchmark/hash_aref_dsym.yml
blob: e862b5689c01a7fe09cdfc018f8134cfa75cdb58 (plain)
1
2
3
4
5
6
7
benchmark:
  hash_aref_dsym: |
    h = {}
    syms = ('a'..'z').map { |s| s.to_sym }
    syms.each { |s| h[s] = 1 }
    200_000.times { syms.each { |s| h[s] } }
loop_count: 1