pocketlang/tests/benchmark/toc/toc.pk
Thakee Nathees 558241a77b import name bind bug fix
stack curreption (due to stack missing parameters)
fixed, and some assertion macros added.
2021-06-14 09:55:18 +05:30

17 lines
246 B
Plaintext

## Run the script in pocketlang with
## toc enabled VS toc disabled
from lang import clock
N = 50000
def woo(n, acc)
if n == 0 then return acc end
return woo(n-1, acc + '!')
end
s = clock()
print(woo(N, ''))
print('elapsed:', clock() - s)