[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / benchmark / hash_ident_str.rb
blob8582b38e319fe5d4383aafcc92b10a41c73a8990
1 h = {}.compare_by_identity
2 strs = ('a'..'z').to_a
3 strs.each { |s| h[s] = s }
4 200_000.times { strs.each { |s| h[s] } }