Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 144 Bytes
module RecursionBenchmark
def loop(0)
:ok
end
def loop(n)
k = n - 1
loop(k)
end
def run
loop(1000000)
end
end