]> Cypherpunks repositories - gostls13.git/commit
testing: increase benchmark output to four significant figures
authorAustin Clements <austin@google.com>
Mon, 2 Nov 2020 13:48:23 +0000 (08:48 -0500)
committerAustin Clements <austin@google.com>
Sat, 7 Nov 2020 22:38:01 +0000 (22:38 +0000)
commitafe7c8d0b25f26f0abd749ca52c7e1e7dfdee8cb
treefca642ba51085c3ebd77e54d2cd8d56b7e11418b
parent5e371e0f93c5618a36f66afdd9c6047a5955c101
testing: increase benchmark output to four significant figures

Currently, the benchmark output from the testing package prints small
values with three significant figures. This means it can only
distinguish 1 part in 100, or a 1% error, which can be enough to throw
off further analysis of the output. This CL increases it to four
significant figures. For time values, at least, anything beyond four
significant figures is almost certainly noise.

Fixes #34626.

Change-Id: I3bcf305427130026276e6a4c78167989319f280c
Reviewed-on: https://go-review.googlesource.com/c/go/+/267102
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/testing/benchmark.go
src/testing/benchmark_test.go