combine benchmarks with test

This commit is contained in:
zongor 2025-07-13 00:18:25 -04:00
parent c4d1aec83f
commit e78a26a3c2
12 changed files with 4 additions and 12 deletions

View File

@ -1,6 +0,0 @@
fn fib(n) {
if (n < 2) return n;
return fib(n - 2) + fib(n - 1);
}
print fib(35);

View File

@ -1,8 +1,6 @@
fn fib(n int) { fn fib(n) {
if (n < 2) { if (n < 2) return n;
return n;
}
return fib(n - 2) + fib(n - 1); return fib(n - 2) + fib(n - 1);
} }
print(fib(35).toS()); print fib(35);

View File

@ -34,4 +34,4 @@ print_section "Python ($FILENAME.py)"
# ZRE Implementation # ZRE Implementation
print_section "zre ($FILENAME.zre)" print_section "zre ($FILENAME.zre)"
echo "test input" | time ../../src/zre "$FILENAME.zre" echo "test input" | time ../src/zre "$FILENAME.zre"