[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / benchmark / hash_ident_sym.rb
blob4c81e3d28e2903474b2c99ef3d1aaa7d520bf142
1 h = {}.compare_by_identity
2 syms = ('a'..'z').to_a.map(&:to_sym)
3 syms.each { |s| h[s] = s }
4 200_000.times { syms.each { |s| h[s] } }