mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue