From 66000925279db375f8ff713dc51d4b918282fafa Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 9 Feb 2013 13:43:15 -0500 Subject: [PATCH] testing: be explicit about use of b.N R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7314071 --- src/pkg/testing/testing.go | 1 + 1 file changed, 1 insertion(+) 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 -- 2.48.1