summaryrefslogtreecommitdiff
path: root/benchmark/hash_aref_miss.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/hash_aref_miss.yml')
-rw-r--r--benchmark/hash_aref_miss.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/benchmark/hash_aref_miss.yml b/benchmark/hash_aref_miss.yml
new file mode 100644
index 0000000..4bd541e
--- /dev/null
+++ b/benchmark/hash_aref_miss.yml
@@ -0,0 +1,8 @@
+benchmark:
+ hash_aref_miss: |
+ h = {}
+ strs = ('a'..'z').to_a.map!(&:freeze)
+ strs.each { |s| h[s] = s }
+ strs = ('A'..'Z').to_a
+ 200_000.times { strs.each { |s| h[s] } }
+loop_count: 1