Fix up benchmarks and add method call one.

This commit is contained in:
Bob Nystrom
2013-12-07 18:43:39 -08:00
parent 3f24515496
commit eb1e5b48d6
8 changed files with 369 additions and 17 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
var fib = fn(n) {
if (n < 2) {
n
} else {
fib.call(n - 1) + fib.call(n - 2)
return n
}
return fib.call(n - 1) + fib.call(n - 2)
}
var start = OS.clock