performanceevidence

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnforceThresholds

func EnforceThresholds() bool

func Gate

func Gate() string

func P95

func P95(values []time.Duration) time.Duration

func Record

func Record(path string, scenario Scenario) error

func RelativeBasisPoints

func RelativeBasisPoints(observed, baseline float64) (float64, error)

Types

type Metric

type Metric struct {
	Name       string  `json:"name"`
	Unit       string  `json:"unit"`
	Observed   float64 `json:"observed"`
	Limit      float64 `json:"limit"`
	Comparator string  `json:"comparator"`
}

type Scenario

type Scenario struct {
	ID          string   `json:"id"`
	Gate        string   `json:"gate"`
	Status      string   `json:"status"`
	SampleCount int      `json:"sample_count"`
	Metrics     []Metric `json:"metrics"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL