summaryrefslogtreecommitdiff
path: root/benchmark/hash_ident_obj.yml
blob: 95c310985f2ab18e2e55e350c36f4ccf0d6883cc (plain)
1
2
3
4
5
6
7
benchmark:
  hash_ident_obj: |
    h = {}.compare_by_identity
    objs = 26.times.map { Object.new }
    objs.each { |o| h[o] = o }
    200_000.times { objs.each { |o| h[o] } }
loop_count: 1