diff options
Diffstat (limited to 'benchmark/hash_to_proc.yml')
-rw-r--r-- | benchmark/hash_to_proc.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/benchmark/hash_to_proc.yml b/benchmark/hash_to_proc.yml new file mode 100644 index 0000000000..2ae8588b27 --- /dev/null +++ b/benchmark/hash_to_proc.yml @@ -0,0 +1,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 |