Skip to content

Improve u16::carrying_mul harness performance #230

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

Merged

Conversation

carolynzech
Copy link

@carolynzech carolynzech commented Dec 18, 2024

This harness takes between 22-25 minutes in CI. Change the harnesses's macro to use kissat solver instead, which brings verification time down to ~7 seconds.

As an aside, I noticed this problem because the partition 1 runner in #229 is taking ~55 minutes, where the other partitions are taking ~30 minutes. This harness accounts for almost the entire difference. One nice consequence of partitioning verification is that it will make performance issues like this more noticeable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@carolynzech carolynzech requested a review from a team as a code owner December 18, 2024 19:10
@carolynzech carolynzech changed the title Improve u16::carrying_mul harness Performance Improve u16::carrying_mul harness performance Dec 18, 2024
@zhassan-aws
Copy link

Can you try annotating the harness with:

#[kani::solver(kissat)]

?

@carolynzech
Copy link
Author

Can you try annotating the harness with:

#[kani::solver(kissat)]

?

Good idea--that brought verification time down to 7 seconds for this harness (and <1 second for the other that use this macro) so implemented that change instead.

Copy link
Author

@carolynzech carolynzech left a comment

Choose a reason for hiding this comment

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

trigger merge workflow

@carolynzech carolynzech added this pull request to the merge queue Dec 19, 2024
Merged via the queue into model-checking:main with commit 5da586f Dec 19, 2024
14 checks passed
@carolynzech carolynzech deleted the carrying-mul-harness-perf branch December 19, 2024 21:26
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.

3 participants