Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (28 sloc) 0.354 kb
perf_test('while') do
i = 0
while i < 10000
j = 0
while j < 2000
j += 1
end
i += 1
end
end
perf_test('times') do
10000.times do
2000.times do
end
end
end
perf_test('for') do
for i in 0..10000
for j in 0..2000
end
end
end
perf_test('upto') do
0.upto(10000) do
0.upto(2000) do
end
end
end
Jump to Line
Something went wrong with that request. Please try again.