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

Add detailed statistics for the subcommand show #73

Merged
merged 6 commits into from
Oct 26, 2023

Conversation

Halbaroth
Copy link
Contributor

@Halbaroth Halbaroth commented Oct 5, 2023

It is useful to know how long solvers took to answer sat, unsat and unknown. In this PR, benchpress outputs more statistics for these answers while using the subcommand show.

I also add a .editorconfig ;)

It is useful to know how long solvers took to answer `sat`, `unsat` and
`unknown`. In this PR, benchpress outputs more statistics for these
answers while using the subcommand `show`.
@Halbaroth
Copy link
Contributor Author

I will add an option to toggle detailed statistics. Otherwise the CI cannot succeed.

Copy link
Member

@c-cube c-cube left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good, just needs to pass CI + reformat :)

src/core/Test_stat.ml Outdated Show resolved Hide resolved
src/core/Test_stat.ml Show resolved Hide resolved
.editorconfig Show resolved Hide resolved
vlist
[
pb_int_color c n;
grid
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not wrong, but I think PB.record could be easier :)

Halbaroth and others added 2 commits October 9, 2023 08:10
Co-authored-by: Simon Cruanes <simon.cruanes.2007@m4x.org>
- Using `v_record` to print the details table.
- Add a CLI option to enable the feature.
@c-cube
Copy link
Member

c-cube commented Oct 9, 2023 via email

@c-cube
Copy link
Member

c-cube commented Oct 10, 2023

No sure what the segfault is about, any idea?

@Halbaroth
Copy link
Contributor Author

I can reproduce the bug on OCaml 4.08. I'll investigate.

@Halbaroth
Copy link
Contributor Author

Halbaroth commented Oct 16, 2023

Bad news. The bug is localized in the bindings library sqlite3. It's fixed in its release 5.0.3 which requires at least OCaml 4.12:
The issue: mmottl/sqlite3-ocaml#47
The release: https://github.com/mmottl/sqlite3-ocaml/releases/tag/5.0.3

I didn't notice that you reported the issue ;p

@c-cube
Copy link
Member

c-cube commented Oct 16, 2023 via email

The bindings library `sqlite3` contains a bug concerning aggregate
functions which has been fixed in its release `5.0.3` but this release
requires at least OCaml `4.12`.
@Halbaroth
Copy link
Contributor Author

Sorry, I thought that you're going to bump the minimal version in a separated PR. I did it in the last commit of this PR. Notice that I modified by myself the opam files as it seems you don't use dune to generate them. I'm not sure it's correct :)

@c-cube
Copy link
Member

c-cube commented Oct 25, 2023

Can you edit the github workflow to use 4.12 and 5.0 as OCaml versions?

Testing benchpress with OCaml version 4.12 an OCaml version 5.0
@c-cube c-cube merged commit febf75b into sneeuwballen:master Oct 26, 2023
2 checks passed
@c-cube
Copy link
Member

c-cube commented Oct 26, 2023

Thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants