summaryrefslogtreecommitdiff
path: root/benchmark/hash_shift_u16.rb
blob: ec800d0342a95cc4b768bc75950046f76be509a0 (plain)
1
2
3
4
5
6
7
8
9
10
h = {}

(16384..65536).each do |i|
  h[i] = nil
end

300000.times do
  k, v = h.shift
  h[k] = v
end