I'm using the benchstat library to aggregate some statistics, and then displaying the results in text format. In the library, the values of old and new are hardcoded to show up when you run benchstat on two configs: https://github.com/golang/perf/blob/master/benchstat/text.go#L208.
name old ms new ms delta
LatenciesMean 9.00 ± 0% 10.75 ±12% +19.44% (p=0.029 n=4+4)
Latencies50th 9.00 ± 0% 10.00 ± 0% +11.11% (p=0.029 n=4+4)
Latencies90th 10.2 ± 7% 12.2 ± 6% +19.51% (p=0.029 n=4+4)
Feature Request
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I'm using the benchstat library to aggregate some statistics, and then displaying the results in text format. In the library, the values of
old
andnew
are hardcoded to show up when you runbenchstat
on two configs: https://github.com/golang/perf/blob/master/benchstat/text.go#L208.What did you expect to see?
Is it possible for these values to be configured so that we display the name instead of
old
andnew
? Like the behaviour for running benchstat on 3+ configs as per: https://github.com/golang/perf/blob/master/benchstat/text.go#L210-L212.Something like:
would be nice.
I wouldn't mind helping patch this if someone points me in the right direction. Thanks!