Lines Matching defs:BenchmarkResult
353 type BenchmarkResult struct { struct
354 N int // The number of iterations.
355 T time.Duration // The total time taken.
356 Bytes int64 // Bytes processed in one iteration.
357 MemAllocs uint64 // The total number of memory allocations.
358 MemBytes uint64 // The total number of bytes allocated.
361 Extra map[string]float64
365 func (r BenchmarkResult) NsPerOp() int64 {
376 func (r BenchmarkResult) mbPerSec() float64 {
388 func (r BenchmarkResult) AllocsPerOp() int64 {
400 func (r BenchmarkResult) AllocedBytesPerOp() int64 {
417 func (r BenchmarkResult) String() string {
482 func (r BenchmarkResult) MemString() string {