1 2 3 4 5 6 7 8 9 10 11 12
benchmark: hash_to_proc: | h = {} 10000.times do |i| h[i] = nil end 5000.times do |i| [i].map(&h) end loop_count: 1