]> Cypherpunks repositories - gostls13.git/commitdiff
testing: be explicit about use of b.N
authorRuss Cox <rsc@golang.org>
Sat, 9 Feb 2013 18:43:15 +0000 (13:43 -0500)
committerRuss Cox <rsc@golang.org>
Sat, 9 Feb 2013 18:43:15 +0000 (13:43 -0500)
R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/7314071

src/pkg/testing/testing.go

index d971f838e2b3cc7d3c0ae9aa13eddad81d45dcd3..357d6f5f2734fc4485351324cbbe76144102fe7f 100644 (file)
@@ -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