Documentation
¶
Overview ¶
Package bench provides benchmark output parsing capabilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Benchmark ¶
type Benchmark struct { Name string Runs int NsPerOp float64 Mem Mem // from '-benchmem' Custom map[string]float64 `json:",omitempty"` // https://tip.golang.org/pkg/testing/#B.ReportMetric }
Benchmark is an individual run
type LineReader ¶
LineReader defines the API surface of bufio.Reader used by the parser
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser is gobenchdata's benchmark output parser
type Run ¶
type Run struct { Version string `json:",omitempty"` Date int64 Tags []string `json:",omitempty"` Suites []Suite }
Run denotes one run of gobenchdata, useful for grouping benchmark records
type RunHistory ¶
type RunHistory []Run
RunHistory is a sort.Interface that sorts the most recent run first
func (RunHistory) Len ¶
func (r RunHistory) Len() int
func (RunHistory) Less ¶
func (r RunHistory) Less(i, j int) bool
func (RunHistory) Swap ¶
func (r RunHistory) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.