summaryrefslogtreecommitdiff
path: root/benchmark/hash_flatten.yml
blob: 0412388417d191c5f998a3992187d09f14208e4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
benchmark:
  hash_flatten: |
    h = {}

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

    1000.times do
      h.flatten
    end
loop_count: 1