From 2474522f2672fa2e822400c10d1036cafeac457c Mon Sep 17 00:00:00 2001 From: zapashcanon Date: Tue, 22 Oct 2024 23:14:48 +0200 Subject: [PATCH] more bench --- wasm/test/binary_trees.ml | 2 ++ wasm/test/splay.ml | 4 ++++ wasm/test/test.sh | 19 ++++++++++--------- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/wasm/test/binary_trees.ml b/wasm/test/binary_trees.ml index 2779fd68f..c3f641471 100644 --- a/wasm/test/binary_trees.ml +++ b/wasm/test/binary_trees.ml @@ -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 diff --git a/wasm/test/splay.ml b/wasm/test/splay.ml index dc3ef464a..b2c5d9d68 100644 --- a/wasm/test/splay.ml +++ b/wasm/test/splay.ml @@ -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 diff --git a/wasm/test/test.sh b/wasm/test/test.sh index 8f07a2a2f..c95fb5689 100755 --- a/wasm/test/test.sh +++ b/wasm/test/test.sh @@ -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"