Skip to content

Commit

Permalink
Reenable soli
Browse files Browse the repository at this point in the history
  • Loading branch information
chambart committed Oct 9, 2024
1 parent 9290525 commit eee778f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion wasm/test/soli.ml
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@ let rec runbench n =
end

let _ =
let nruns = 2000 in
let nruns = 500 in
runbench nruns
12 changes: 6 additions & 6 deletions wasm/test/test_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ NODE='node-canary --stack-size=10000'

bench() {
echo "*** Running ${1}"
echo -n "Wasocaml (node): "
echo -n "Wasocaml (node): "
../../ocamlopt -O3 ./${2}.ml > /dev/null
time $NODE ./main_node.mjs > /dev/null
wasm-opt --enable-gc --enable-reference-types --enable-exception-handling --enable-multivalue --enable-tail-call a.out.wasm -o a.out.wasm -O3
echo -n "Wasocaml + wasm-opt (node): "
echo -n "Wasocaml + wasm-opt (node): "
time $NODE ./main_node.mjs > /dev/null
echo -n "OCaml native: "
echo -n "OCaml native: "
ocamlopt -O3 ./${2}.ml > /dev/null
time ./a.out > /dev/null
echo -n "OCaml bytecode: "
echo -n "OCaml bytecode: "
ocamlc ./${2}.ml > /dev/null
time ocamlrun ./a.out > /dev/null
echo -n "js_of_ocaml (node): "
echo -n "js_of_ocaml (node): "
js_of_ocaml compile --target-env=nodejs --opt=3 ./a.out
time $NODE ./a.js > /dev/null
}

bench "Knuth-Bendix" "kb"
#bench "Soli" "soli"
bench "Soli" "soli"
bench "Fibonacci" "fib"
#bench "Almabench" "almabench"
bench "Binary Decision Diagram" "bdd"
Expand Down

0 comments on commit eee778f

Please sign in to comment.