Closed aim2120 closed 1 month ago
Thanks for the nice report and reproducer, much appreciated - will unfortunately take some time to have a look at it right now, but will come back, sorry for the inconvenience.
I have this fixed in a branch and seems to work ok now with your test case - hope to gét it up tomorrow. Great if you get the chance to test it then too if possible.
This should be fixed in https://github.com/ordo-one/package-benchmark/pull/284 now, if you can please have a go testing against that (it will be merged fairly soon).
I think this is fixed now, please open a new issue if you see some further issue.
Existing Behavior
When I create two baselines
alpha
andbeta
, with some thresholds defined in theBenchmark
configurations, those thresholds are not used when I runswift package benchmark check alpha beta
. Instead, the default threshold is used.Expected Behavior
When I define thresholds for baselines and run a
check
with those baselines, the thresholds I specified are used.Repro steps
BenchmarkExample.zip
The attached project uses a
count
environment variable to change the benchmark duration. It also specifies a manual threshold.Run the following steps to see how running
check
with 2 baselines uses the default thresholds, while runningcheck
with 1 baseline uses the thresholds provided in the configuration.