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

10000.times do |i|
  h[i] = nil
end

1000.times do
  h.flatten
end