aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark/bm_hash_ident_obj.rb
blob: 4b3b58edec926189759069a39dfff9efddfc5d78 (plain)
1
2
3
4
h = {}.compare_by_identity
objs = 26.times.map { Object.new }
objs.each { |o| h[o] = o }
200_000.times { objs.each { |o| h[o] } }