diff options
Diffstat (limited to 'benchmark/bm_hash_aref_dsym.rb')
-rw-r--r-- | benchmark/bm_hash_aref_dsym.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/benchmark/bm_hash_aref_dsym.rb b/benchmark/bm_hash_aref_dsym.rb new file mode 100644 index 0000000000..af4f8c36d4 --- /dev/null +++ b/benchmark/bm_hash_aref_dsym.rb @@ -0,0 +1,4 @@ +h = {} +syms = ('a'..'z').map { |s| s.to_sym } +syms.each { |s| h[s] = 1 } +200_000.times { syms.each { |s| h[s] } } |