testing.BenchmarkResult.N (field)
12 uses
testing (current package)
benchmark.go#L352: N int // The number of iterations.
benchmark.go#L367: if r.N <= 0 {
benchmark.go#L370: return r.T.Nanoseconds() / int64(r.N)
benchmark.go#L378: if r.Bytes <= 0 || r.T <= 0 || r.N <= 0 {
benchmark.go#L381: return (float64(r.Bytes) * float64(r.N) / 1e6) / r.T.Seconds()
benchmark.go#L390: if r.N <= 0 {
benchmark.go#L393: return int64(r.MemAllocs) / int64(r.N)
benchmark.go#L402: if r.N <= 0 {
benchmark.go#L405: return int64(r.MemBytes) / int64(r.N)
benchmark.go#L417: fmt.Fprintf(buf, "%8d", r.N)
benchmark.go#L422: ns = float64(r.T.Nanoseconds()) / float64(r.N)
benchmark.go#L681: r.N = 1
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |