testing.BenchmarkResult.T (field)
6 uses
testing (current package)
benchmark.go#L353: T time.Duration // The total time taken.
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#L422: ns = float64(r.T.Nanoseconds()) / float64(r.N)
benchmark.go#L682: r.T += time.Duration(other.NsPerOp())
![]() |
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. |