Documentation
¶
Index ¶
- type Benchmark
- type Benchmarks
- func (bs Benchmarks) Filter(filter Benchmark) (Benchmarks, error)
- func (bs Benchmarks) FilterByName(rx string) (Benchmarks, error)
- func (bs Benchmarks) Len() int
- func (bs Benchmarks) Less(ii, jj int) bool
- func (bs Benchmarks) Merge(other Benchmarks) Benchmarks
- func (b Benchmarks) Sort()
- func (p Benchmarks) Swap(i, j int)
- type Context
- type ElementType
- type Machine
- type Suite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Benchmark ¶
type Benchmark struct {
Name string `json:"name"`
Iterations float64 `json:"iterations"`
RealTime time.Duration `json:"real_time"`
CPUTime time.Duration `json:"cpu_time"`
TimeUnit string `json:"time_unit"`
Flops *float64 `json:"predicted_flops_count,omitempty"`
Attributes map[string]interface{} `json:"-"`
}
func (Benchmark) MarshalJSON ¶
func (*Benchmark) UnmarshalJSON ¶
type Benchmarks ¶
type Benchmarks []Benchmark
func (Benchmarks) Filter ¶
func (bs Benchmarks) Filter(filter Benchmark) (Benchmarks, error)
func (Benchmarks) FilterByName ¶
func (bs Benchmarks) FilterByName(rx string) (Benchmarks, error)
func (Benchmarks) Len ¶
func (bs Benchmarks) Len() int
func (Benchmarks) Less ¶
func (bs Benchmarks) Less(ii, jj int) bool
func (Benchmarks) Merge ¶
func (bs Benchmarks) Merge(other Benchmarks) Benchmarks
func (Benchmarks) Sort ¶
func (b Benchmarks) Sort()
func (Benchmarks) Swap ¶
func (p Benchmarks) Swap(i, j int)
type ElementType ¶
type Suite ¶
type Suite struct {
Context Context `json:"context"`
Benchmarks Benchmarks `json:"benchmarks"`
GPUInformation *nvidiasmi.NvidiaSmi `json:"gpu_information,omitempty"`
}
func (Suite) FilterByName ¶
func (s Suite) FilterByName(rx string) (Benchmarks, error)
Click to show internal directories.
Click to hide internal directories.