Files
RubyMotion/test/Benchmark/app/benchmark/hash/aset.rb
2013-11-16 15:35:50 +09:00

15 lines
240 B
Ruby

def hash_aref(x)
x.report "hash[key] with exist key" do
1000000.times do
$small_hash[:SlBkyplxcZ]
end
end
x.report "hash[key] with unknown key" do
1000000.times do
$small_hash[:SlBkdfadsfs]
end
end
end