summaryrefslogtreecommitdiff
path: root/benchmark/hash_aref_array.rb
blob: ac7a683d954ab99ce5c77c4e26f6a9d114d4a573 (plain)
1
2
3
4
5
h = {}
arrays = (0..99).each_slice(10).to_a
#STDERR.puts arrays.inspect
arrays.each { |s| h[s] = s }
200_000.times { arrays.each { |s| h[s] } }