summaryrefslogtreecommitdiff
path: root/benchmark/hash_dup.yml
blob: 65f521ec946ce37773e61da303ad73ba72e3b13e (plain)
1
2
3
4
5
6
7
8
prelude: |
  small_hash = { a: 1 }
  larger_hash = 20.times.map { |i| [('a'.ord + i).chr.to_sym, i] }.to_h

benchmark:
  dup_small: small_hash.dup
  dup_larger: larger_hash.dup
loop_count: 10000