summaryrefslogtreecommitdiff
path: root/benchmark/hash_aref_fix.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/hash_aref_fix.yml')
-rw-r--r--benchmark/hash_aref_fix.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/benchmark/hash_aref_fix.yml b/benchmark/hash_aref_fix.yml
new file mode 100644
index 0000000..5469d2a
--- /dev/null
+++ b/benchmark/hash_aref_fix.yml
@@ -0,0 +1,7 @@
+benchmark:
+ hash_aref_fix: |
+ h = {}
+ nums = (1..26).to_a
+ nums.each { |i| h[i] = i }
+ 200_000.times { nums.each { |s| h[s] } }
+loop_count: 1