aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2021-10-21 11:11:13 -0400
committerAustin Clements <austin@google.com>2021-10-25 14:50:31 +0000
commit1ed060cf87ec887ad76c51e3f7a2148cc2a7bf9b (patch)
treecc9233192a9d1cc2173959dc837a0726d22f4fcd /src/testing
parentfcd2d9cd75e6307b5b72fed2201044e231bef40a (diff)
downloadgo-1ed060cf87ec887ad76c51e3f7a2148cc2a7bf9b.tar.xz
testing: reference benchmark format spec
This updates the testing package documentation to reference the specification for the benchmark format, and points users to our standard tools for working with benchmark data. (It's somewhat remarkable how widely used benchstat appears to be given that we don't mention it anywhere!) Change-Id: Idbb4416d2fde9606ea7e6c15595f3b9e6a38f3b0 Reviewed-on: https://go-review.googlesource.com/c/go/+/357589 Trust: Austin Clements <austin@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go
index d03c0b1cf9..6fb1a71d43 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -75,6 +75,14 @@
// })
// }
//
+// A detailed specification of the benchmark results format is given
+// in https://golang.org/design/14313-benchmark-format.
+//
+// There are standard tools for working with benchmark results at
+// https://golang.org/x/perf/cmd.
+// In particular, https://golang.org/x/perf/cmd/benchstat performs
+// statistically robust A/B comparisons.
+//
// Examples
//
// The package also runs and verifies example code. Example functions may