diff options
Diffstat (limited to 'benchmark/hash_keys.yml')
-rw-r--r-- | benchmark/hash_keys.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/benchmark/hash_keys.yml b/benchmark/hash_keys.yml new file mode 100644 index 0000000000..18e9078640 --- /dev/null +++ b/benchmark/hash_keys.yml @@ -0,0 +1,12 @@ +benchmark: + hash_keys: | + h = {} + + 10000.times do |i| + h[i] = nil + end + + 5000.times do + h.keys + end +loop_count: 1 |