Documentation
¶
Index ¶
Constants ¶
View Source
const ( BeforeSetup = "beforeSetup" AfterSetup = "afterSetup" )
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.