testing: lost ns/op precision for fast benchmarks [regression] #30997
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
CL 166717 caused a regression in benchmark ns/op printing precision.
We now get benchmark output like:
Previously, we got:
This is due to a change in
BenchmarkResult.String
. Previously, whenns/op
was small, it recalculated it to get extra precision and had special print handling. Now it always uses the results ofBenchmarkResult.NsPerOp
, which returns an int64.cc @aclements
The text was updated successfully, but these errors were encountered: