parser

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BeforeSetup = "beforeSetup"
	AfterSetup  = "afterSetup"
)

Variables

This section is empty.

Functions

func Extract

func Extract(m gm.Measurement) (string, float64)

func NewExperiments

func NewExperiments(specReports types.SpecReports, result map[string]Experiment) (float64, error)

func NewSetup

func NewSetup(specReports types.SpecReports, result map[string]Measurement) (string, error)

Types

type Experiment

type Experiment struct {
	Measurements map[string]Measurement
}

Experiment is a set of measurements, like from 50-gitrepo-1-bundle Measurements from the report are one dimensional, as most experiments don't use sampling type Experiment map[string]float64

type Measurement

type Measurement struct {
	Value           float64            `json:"value,omitempty"`
	Type            gm.MeasurementType `json:"type,omitempty"`
	PrecisionBundle gm.PrecisionBundle `json:"precision_bundle,omitempty"`
	Style           string             `json:"style,omitempty"`
	Units           string             `json:"units,omitempty"`
}

func (Measurement) String

func (r Measurement) String() string

type Sample

type Sample struct {
	Description string                 `json:"description,omitempty"`
	Experiments map[string]Experiment  `json:"experiments,omitempty"`
	Setup       map[string]Measurement `json:"setup,omitempty"`
}

Sample represents a single benchmark report

Jump to

Keyboard shortcuts

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