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

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

5000.times do
  h.keys
end