Documentation
¶
Index ¶
Constants ¶
View Source
const ( DegradingChange = -1 // represents a statistically significant degradation InsignificantChange = 0 // represents no statistically significant change ImprovingChange = 1 // represents a statistically significant improvement )
BenchmarkChangeType values
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BenchmarkChangeType ¶ added in v0.2.0
type BenchmarkChangeType int
BenchmarkChangeType is whether a change is an improvement or degradation
type Differ ¶
type Differ struct {
BenchCmd string
BenchArgs string
ResultsDir string
BaseRef string
Path string
Writer io.Writer
Benchstat *pkgbenchstat.Benchstat
Force bool
}
Differ runs benchstats and outputs their deltas
func (*Differ) OutputResult ¶ added in v0.2.0
OutputResult outputs a Run result
type RunResult ¶ added in v0.2.0
type RunResult struct {
// contains filtered or unexported fields
}
RunResult is the result of a Run
func (*RunResult) HasChangeType ¶ added in v0.2.0
func (r *RunResult) HasChangeType(changeType BenchmarkChangeType) bool
HasChangeType returns true if the result has at least one change with the given type
Click to show internal directories.
Click to hide internal directories.