add benchmark suite

This commit is contained in:
Watson
2013-11-16 09:16:58 +09:00
parent d594397510
commit a749bfc648
25 changed files with 1074 additions and 0 deletions

View 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