ruby--ruby/benchmark/bighash.rb

2 lines
38 B
Ruby

h = {}; 5000000.times {|n| h[n] = n }