summaryrefslogtreecommitdiff
path: root/jni/ruby/benchmark/bm_hash_values.rb
blob: 069441302f59a0fb4669738e827baee102c50a01 (plain)
1
2
3
4
5
6
7
8
9
h = {}

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

5000.times do
  h.values
end