[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / benchmark / hash_flatten.rb
blobe944aae9f248d4e5ccde17bfb8b8d218ef9661ce
1 h = {}
3 10000.times do |i|
4   h[i] = nil
5 end
7 1000.times do
8   h.flatten
9 end