benchmark

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CalculatedDiff

type CalculatedDiff struct {
	Name       string
	MetricDiff []MetricDiff
}

func Diff

func Diff(previous, current []Series) []CalculatedDiff

type Measurement

type Measurement struct {
	Name       string   `json:"-"`
	CommitHash string   `json:"commit_hash"`
	Metrics    []Metric `json:"metrics"`
}

type Metric

type Metric struct {
	Unit  string  `json:"unit"`
	Value float64 `json:"value"`
}

type MetricDiff

type MetricDiff struct {
	Unit string

	PreviousCommit string
	CurrentCommit  string

	PreviousValue float64
	CurrentValue  float64
}

func (MetricDiff) Ratio

func (m MetricDiff) Ratio() float64

type Series

type Series struct {
	Name         string        `json:"name"`
	Measurements []Measurement `json:"measurements"`
}

func Merge

func Merge(previous, current []Series) []Series

Jump to

Keyboard shortcuts

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