Versions in this module Expand all Collapse all v0 v0.1.1 Dec 1, 2022 Changes in this version + var ErrSampleSize = errors.New("too few samples") + var ErrSamplesEqual = errors.New("all equal") + var ErrZeroVariance = errors.New("zero variance") + func ByDelta(t *Table, i, j int) bool + func ByName(t *Table, i, j int) bool + func FormatCSV(w io.Writer, tables []*Table, norange bool) + func FormatHTML(buf *bytes.Buffer, tables []*Table) + func FormatText(w io.Writer, tables []*Table) + func NoDeltaTest(old, new *Metrics) (pval float64, err error) + func SafeFormatHTML(tables []*Table) safehtml.HTML + func Sort(t *Table, order Order) + func TTest(old, new *Metrics) (pval float64, err error) + func UTest(old, new *Metrics) (pval float64, err error) + type Collection struct + AddGeoMean bool + Alpha float64 + Benchmarks map[string][]string + Configs []string + DeltaTest DeltaTest + Groups []string + Metrics map[Key]*Metrics + Order Order + SplitBy []string + Units []string + func (c *Collection) AddConfig(config string, data []byte) + func (c *Collection) AddFile(config string, r io.Reader) error + func (c *Collection) AddResults(config string, results []*benchfmt.Result) + func (c *Collection) Tables() []*Table + type DeltaTest func(old, new *Metrics) (float64, error) + type Key struct + Benchmark string + Config string + Group string + Unit string + type Metrics struct + Max float64 + Mean float64 + Min float64 + RValues []float64 + Unit string + Values []float64 + func (m *Metrics) Format(scaler Scaler) string + func (m *Metrics) FormatDiff() string + func (m *Metrics) FormatMean(scaler Scaler) string + type Order func(t *Table, i, j int) bool + func Reverse(order Order) Order + type Row struct + Benchmark string + Change int + Delta string + Group string + Metrics []*Metrics + Note string + PctDelta float64 + Scaler Scaler + type Scaler func(float64) string + func NewScaler(val float64, unit string) Scaler + type Table struct + Configs []string + Groups []string + Metric string + OldNewDelta bool + Rows []*Row