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