From: Russ Cox Date: Sat, 9 Feb 2013 18:43:15 +0000 (-0500) Subject: testing: be explicit about use of b.N X-Git-Tag: go1.1rc2~1093 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=66000925279db375f8ff713dc51d4b918282fafa;p=gostls13.git testing: be explicit about use of b.N R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7314071 --- diff --git a/src/pkg/testing/testing.go b/src/pkg/testing/testing.go index d971f838e2..357d6f5f27 100644 --- a/src/pkg/testing/testing.go +++ b/src/pkg/testing/testing.go @@ -33,6 +33,7 @@ // } // } // +// The benchmark function must run the target code b.N times. // The benchmark package will vary b.N until the benchmark function lasts // long enough to be timed reliably. The output // BenchmarkHello 10000000 282 ns/op