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