gotools/cmd/benchcmp/compare.go

type BenchCmp

// Correlate correlates benchmarks from two BenchSets.
func Correlate(before, after parse.Set) (cmps []BenchCmp, warnings []string) {}

func (c BenchCmp) Name() string           {}

func (c BenchCmp) String() string         {}

func (c BenchCmp) Measured(flag int) bool {}

func (c BenchCmp) DeltaNsPerOp() Delta    {}

func (c BenchCmp) DeltaMBPerS() Delta     {}

func (c BenchCmp) DeltaAllocedBytesPerOp() Delta {}

func (c BenchCmp) DeltaAllocsPerOp() Delta {}

type Delta

// mag calculates the magnitude of a change, regardless of the direction of
// the change. mag is intended for sorting and has no independent meaning.
func (d Delta) mag() float64 {}

// Changed reports whether the benchmark quantities are different.
func (d Delta) Changed() bool {}

// Float64 returns After / Before. If Before is 0, Float64 returns
// 1 if After is also 0, and +Inf otherwise.
func (d Delta) Float64() float64 {}

// Percent formats a Delta as a percent change, ranging from -100% up.
func (d Delta) Percent() string {}

// Multiple formats a Delta as a multiplier, ranging from 0.00x up.
func (d Delta) Multiple() string {}

func (d Delta) String() string {}

type ByParseOrder

func (x ByParseOrder) Len() int           {}

func (x ByParseOrder) Swap(i, j int)      {}

func (x ByParseOrder) Less(i, j int) bool {}

// lessByDelta provides lexicographic ordering:
//   - largest delta by magnitude
//   - alphabetic by name
func lessByDelta(i, j BenchCmp, calcDelta func(BenchCmp) Delta) bool {}

type ByDeltaNsPerOp

func (x ByDeltaNsPerOp) Len() int           {}

func (x ByDeltaNsPerOp) Swap(i, j int)      {}

func (x ByDeltaNsPerOp) Less(i, j int) bool {}

type ByDeltaMBPerS

func (x ByDeltaMBPerS) Len() int           {}

func (x ByDeltaMBPerS) Swap(i, j int)      {}

func (x ByDeltaMBPerS) Less(i, j int) bool {}

type ByDeltaAllocedBytesPerOp

func (x ByDeltaAllocedBytesPerOp) Len() int      {}

func (x ByDeltaAllocedBytesPerOp) Swap(i, j int) {}

func (x ByDeltaAllocedBytesPerOp) Less(i, j int) bool {}

type ByDeltaAllocsPerOp

func (x ByDeltaAllocsPerOp) Len() int      {}

func (x ByDeltaAllocsPerOp) Swap(i, j int) {}

func (x ByDeltaAllocsPerOp) Less(i, j int) bool {}