Move kraken,scheme,python,cpp fib tests over to koka_bench, add WAVM as a tested compiler backend for the Kraken benchmarks

This commit is contained in:
Nathan Braswell
2022-06-28 00:38:37 -04:00
parent 999d21746e
commit 4663982f1b
18 changed files with 248 additions and 8 deletions

13
koka_bench/koka/fib.kk Normal file
View File

@@ -0,0 +1,13 @@
module nqueens
import std/num/int32
import std/os/env
pub fun fib( n : int ) : div int
match n
0 -> 1
1 -> 1
x -> fib(x - 1) + fib(x - 2)
pub fun main()
fib(get-args().head("").parse-int.default(30)).println