[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / benchmark / hash_shift_u32.rb
blob656aa555839ddfd2b149b1f753faee929741da88
1 h = {}
3 (0xffff4000..0xffffffff).each do |i|
4   h[i] = nil
5 end
7 300000.times do
8   k, v = h.shift
9   h[k] = v
10 end