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
x/tools/cmd/benchcmp: Add -tolerance flag #20726
Comments
|
Ok, cheers, the situation with benchstat is the same regarding an exit code and CI, shall I close this and re-open on benchstat? |
How would this work for Note that |
Yes, exactly, that would work, however that might cause unexpected behaviour for backward compatibility? |
I don't know if it'll be accepted, but sure. Please open a new issue with your updated request. Thanks! |
(I don't think we guarantee backward compatibility on things like the exit code of this kind of helper tool). |
Thank you, I will open a new issue |
Running benchcmp on a CI server to detect anomalies relies on the user to parse the output from the command in order to pick up any deltas. To make this process simpler I propose adding an additional flag to benchcmp
-tolerance=[Float64]
which would cause benchcmp to return a status code 1 when any of the delta percentages are greater than the tollerance.The state would be tracked across multiple deltas and types of benchmark under comparison i.e:
And if any delta is greater than the tolerance then exit code 1 and an error message would be returned.
An example of the implementation can be found on my fork of the tools golang/tools@master...nicholasjackson:nic/tollerance_flag
Kind regards,
Nic
The text was updated successfully, but these errors were encountered: