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