summaryrefslogtreecommitdiff
path: root/benchmark/bm_hash_aref_sym.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/bm_hash_aref_sym.rb')
-rw-r--r--benchmark/bm_hash_aref_sym.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/benchmark/bm_hash_aref_sym.rb b/benchmark/bm_hash_aref_sym.rb
deleted file mode 100644
index f75d163..0000000
--- a/benchmark/bm_hash_aref_sym.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-h = {}
-syms = ('a'..'z').to_a
-begin
- syms = eval("%i[#{syms.join(' ')}]")
-rescue SyntaxError # <= 1.9.3
- syms.map!(&:to_sym)
-end
-syms.each { |s| h[s] = s }
-200_000.times { syms.each { |s| h[s] } }