summaryrefslogtreecommitdiff
path: root/jni/ruby/benchmark/bm_hash_ident_str.rb
blob: 8582b38e319fe5d4383aafcc92b10a41c73a8990 (plain)
1
2
3
4
h = {}.compare_by_identity
strs = ('a'..'z').to_a
strs.each { |s| h[s] = s }
200_000.times { strs.each { |s| h[s] } }