ruby--ruby/benchmark/hash_small8.rb

2 lines
52 B
Ruby

1000000.times.map{|i| a={}; 8.times{|j| a[j]=j}; a}