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