18 lines
451 B
Go
18 lines
451 B
Go
package hyperfine
|
|
|
|
type Result struct {
|
|
Results []Benchmark `json:"results"`
|
|
}
|
|
|
|
type Benchmark struct {
|
|
Command string `json:"command"`
|
|
Mean float64 `json:"mean"`
|
|
Stddev float64 `json:"stddev"`
|
|
Median float64 `json:"median"`
|
|
User float64 `json:"user"`
|
|
System float64 `json:"system"`
|
|
Min float64 `json:"min"`
|
|
Max float64 `json:"max"`
|
|
Times []float64 `json:"times"`
|
|
Exit []int `json:"exit_codes"`
|
|
}
|