mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-19 00:56:52 +08:00
20 lines
322 B
Ruby
20 lines
322 B
Ruby
def hash_equal(x)
|
|
x.report "hash == hash" do
|
|
10000.times do
|
|
$small_hash == $small_hash
|
|
end
|
|
end
|
|
|
|
x.report "hash == hash.dup" do
|
|
10000.times do
|
|
$small_hash == $small_hash.dup
|
|
end
|
|
end
|
|
|
|
x.report "hash == other" do
|
|
10000.times do
|
|
$small_hash == $different_hash
|
|
end
|
|
end
|
|
end
|