-
Notifications
You must be signed in to change notification settings - Fork 17
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
Benchmark pull requests against main #304
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @pnmadelaine! This looks all very good to me. I have a few (non-blocking) suggestions and a more general question.
The more general question is: I'm sure you tested this locally, but it's difficult for me to see if everything works as expected. Do you think we could extract the benchmarking step into a standalone script that we can use to test locally?
Pull Request Test Coverage Report for Build 3694501943
💛 - Coveralls |
@duesee we could definitely extract the script, maybe even put it in |
Good idea 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed offline, this is good to go, thanks! I think it would be worth it to try to get rid of the extra download of gbenchmark, though. But it should be fine to leave that as is should there be unexpected complications when changing that.
Since CI was blocking and I was done moving the script to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll finish the pending review with "Comment". Feel free to re-request a review when this is ready!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the extra effort! This is easier to review now. I checked that mach benchmark --compare
works as expected and detects performance regressions. mach
returns an error code in this case so that GitHub Actions will (hopefully) fail. Nice work!
@franziskuskiefer, do you want to have another look? In any case we should not forget to squash before merge :-) |
Thanks, lgtm! |
This PR adds the
--compare
flag to the./mach benchmark
subcommand, allowing to benchmark against another revision of hacl-packages.It also adds a github action that will use that command on PRs and hacl-star branches, comparing them with
main
.