testing: be explicit about use of b.N

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/7314071
This commit is contained in:
Russ Cox 2013-02-09 13:43:15 -05:00
parent e1c309e792
commit 6600092527

View 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