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