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

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

5000.times do |i|
  [i].map(&h)
end