Documentation
¶
Overview ¶
Package parse provides support for parsing benchmark results as generated by 'go test -bench'.
Index ¶
Constants ¶
View Source
const ( NsPerOp = 1 << iota MBPerS AllocedBytesPerOp AllocsPerOp )
Flags used by Benchmark.Measured to indicate which measurements a Benchmark contains.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Benchmark ¶
type Benchmark struct {
Name string // benchmark name
N int // number of iterations
NsPerOp float64 // nanoseconds per iteration
AllocedBytesPerOp uint64 // bytes allocated per iteration
AllocsPerOp uint64 // allocs per iteration
MBPerS float64 // MB processed per second
Measured int // which measurements were recorded
Ord int // ordinal position within a benchmark run
}
Benchmark is one run of a single benchmark.
Click to show internal directories.
Click to hide internal directories.