diff options
Diffstat (limited to 'benchmark/hash_aref_dsym.yml')
-rw-r--r-- | benchmark/hash_aref_dsym.yml | 7 |
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 0000000000..e862b5689c --- /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 |