Skip to content

Commit

Permalink
more bench
Browse files Browse the repository at this point in the history
  • Loading branch information
zapashcanon committed Oct 22, 2024
1 parent 7a663bc commit 2474522
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
2 changes: 2 additions & 0 deletions wasm/test/binary_trees.ml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ let loop_depths d =
print_int (2 * niter);
print_string " trees of depth ";
print_int d;
(*
print_string " check ";
print_int !c;
*)
print_string "\n"
done

Expand Down
4 changes: 4 additions & 0 deletions wasm/test/splay.ml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ let splaySetup () =
let splayTearDown t =
let keys, length = exportKeys t in
(* // Verify that the splay tree has the right size. *)
print_string "splayTearDown:";
print_int length;
print_int kSplayTreeSize;
print_string "\n";
if length <> kSplayTreeSize then failwith "Splay tree has wrong size";
(* // Verify that the splay tree has sorted, unique keys. *)
match keys with
Expand Down
19 changes: 10 additions & 9 deletions wasm/test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,24 @@ bench() {
}

#bench "Almabench" "almabench" # global init must have correct type
bench "Binary Trees" "binary_trees" # unreachable
#bench "Boyer" "boyer" # unreachable
#bench "Boyer no exceptions" "boyer_no_exc" # unreachable
bench "Pfannkuchen" "fannkuch" # unreachable
#bench "Pfannkuchen 2" "fannkuch2" # missing "caml_string_notequal" and "caml_lessthan"
#bench "Fast Fourier Transform" "fft" # unreachable
#bench "Hamming" "hamming" # missing value let-rec
#bench "Nucleic" "nucleic" # unreachable
#bench "Ray-Trace" "raytrace" # global init must have correct type
#bench "Splay Tree" "splay" # unreachable
#bench "Splay Tree" "splay" # wrong result


bench "Binary Decision Diagram" "bdd"
bench "Binary Trees" "binary_trees" # seems wrong if we uncomment the check print in loop_depths ?
bench "Fibonacci" "fib"
bench "Knuth-Bendix" "kb"
bench "Knuth-Bendix (no exception)" "kb_no_exc"
bench "Soli" "soli"
bench "Fibonacci" "fib"
bench "Binary Decision Diagram" "bdd"
bench "Loop" "loop"
#bench "Nucleic" "nucleic" # wsoo crash on this one..
bench "Pfannkuchen" "fannkuch"
bench "Pfannkuchen 2" "fannkuch2"
bench "Quicksort" "quicksort"
bench "Soli" "soli"
bench "Takc" "takc"
bench "Taku" "taku"
bench "Quicksort" "quicksort"

0 comments on commit 2474522

Please sign in to comment.