moved benchmark lox files to separate folder

This commit is contained in:
Moritz Gmeiner 2024-08-25 21:22:30 +02:00
commit 29431d0cdb
13 changed files with 344 additions and 302 deletions

8
benchmark/fib.lox Normal file
View file

@ -0,0 +1,8 @@
fun fib(n) {
if (n < 2) return n;
return fib(n - 2) + fib(n - 1);
}
// var start = clock();
print fib(35); // expect: 9227465
// print clock() - start;

View file

@ -3,6 +3,4 @@ fun fib(n) {
return fib(n - 2) + fib(n - 1); return fib(n - 2) + fib(n - 1);
} }
var start = clock(); print fib(35); // expect: 9227465
print fib(35) == 9227465;
print clock() - start;

File diff suppressed because it is too large Load diff