add benchmark and cell doc

This commit is contained in:
2025-07-05 10:25:27 -05:00
parent d52d50fe61
commit d4f0059419
2 changed files with 196 additions and 0 deletions

16
benchmarks/fib.ce Normal file
View File

@@ -0,0 +1,16 @@
var time = use('time')
function fib(n) {
if (n<2) return n
return fib(n-1) + fib(n-2)
}
var now = time.number()
var arr = [1,2,3,4,5]
for (var i in arr) {
log.console(fib(28))
}
log.console(`elapsed: ${time.number()-now}`)
$_.stop()