1
0
mirror of https://github.com/golang/go synced 2024-11-19 05:14:50 -07:00
go/cmd/benchcmp
Russ Cox 222283a9c8 go.tools/cmd/benchcmp: add -best flag
If you have multiple runs in old.txt and new.txt
the default behavior is to match them up pairwise
and compare successive pairs (and if you have a
different number of runs in each file, benchcmp
refuses to do anything).

The new -best flag changes the behavior to instead
compare the fastest run of each benchmark from
the two files. This makes sense if you believe that
the fastest speed is the 'actual' speed and the slower
results are due to the computer spending time doing
non-benchmark work while the benchmark was
running.

LGTM=josharian
R=golang-codereviews, josharian
CC=golang-codereviews
https://golang.org/cl/102890047
2014-05-30 21:45:27 -04:00
..
benchcmp.go go.tools/cmd/benchcmp: add -best flag 2014-05-30 21:45:27 -04:00
compare_test.go go.tools/cmd/benchcmp: sort by original benchmark order by default 2014-02-19 07:44:49 -08:00
compare.go go.tools/cmd/benchcmp: sort by original benchmark order by default 2014-02-19 07:44:49 -08:00
doc.go go.tools/cmd/benchcmp: expand documentation 2014-04-14 17:00:04 -07:00
parse_test.go go.tools/cmd/benchcmp: add -best flag 2014-05-30 21:45:27 -04:00
parse.go go.tools/cmd/benchcmp: add -best flag 2014-05-30 21:45:27 -04:00