mirror of https://github.com/golang/go.git
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:
parent
e1c309e792
commit
6600092527
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue