Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve simplifications #22

Merged
merged 4 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions bin/benchmark.ml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ let time f x =
{ value = fx; time = Sys.time () -. t }

let print_value_results { name; before; after } =
Printf.printf "| %s | %d | %d | %.2f | %.4f |\n" name before.value after.value
Printf.printf "| %s | %d | %d | %.2f | %.4f | %.4f |\n" name before.value
after.value
(percentage_reduction
(float_of_int before.value)
(float_of_int after.value))
before.time
before.time after.time

let bench_one fs =
let f = eval fs in
Expand All @@ -55,8 +56,9 @@ let bench_one fs =
let print_bench_value_info benches =
Printf.printf
"| Formula | Interpolant weight | Simplified interpolant weight | \
Percentage reduction |Interpolant computation time (s)|\n\
|--|--|--|--|--|\n";
Percentage reduction | Interpolant computation time (s)| Simplification \
computation time (s)|\n\
|--|--|--|--|--|--|\n";
List.iter print_value_results benches;
print_newline ();

Expand Down
Loading