Get a basic benchmark runner going.

This commit is contained in:
Bob Nystrom
2013-11-22 08:55:22 -08:00
parent d19f9f1b9b
commit b30c30e1e3
7 changed files with 112 additions and 7 deletions
+7 -1
View File
@@ -6,4 +6,10 @@ var fib = fn(n) {
}
}
io.write(fib.call(35))
var start = OS.clock
var i = 0
while (i < 5) {
io.write(fib.call(30))
i = i + 1
}
io.write("elapsed: " + (OS.clock - start).toString)