mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-24 04:46:05 +08:00
add benchmark suite
This commit is contained in:
11
test/Benchmark/app/benchmark/array/each.rb
Normal file
11
test/Benchmark/app/benchmark/array/each.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
def array_each(x)
|
||||
large_array = $large_array.dup
|
||||
|
||||
x.report "each" do
|
||||
10000.times do
|
||||
large_array.each do |item|
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user