summaryrefslogtreecommitdiff
path: root/jni/ruby/benchmark/bm_hash_ident_num.rb
blob: b226736c6f6d5a73067c2c906d475e98c52563ed (plain)
1
2
3
4
h = {}.compare_by_identity
nums = (1..26).to_a
nums.each { |n| h[n] = n }
200_000.times { nums.each { |n| h[n] } }