benchmark

package
v0.0.0-...-d437eb7 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: NCSA Imports: 20 Imported by: 0

Documentation

Index

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) IsEqual

func (b Benchmark) IsEqual(other Benchmark) bool

func (Benchmark) MarshalJSON

func (w Benchmark) MarshalJSON() ([]byte, error)

func (*Benchmark) UnmarshalJSON

func (w *Benchmark) UnmarshalJSON(data []byte) error

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 Context

type Context struct {
	Date              string  `json:"date"`
	NumCpus           int     `json:"num_cpus"`
	MhzPerCPU         int     `json:"mhz_per_cpu"`
	CPUScalingEnabled bool    `json:"cpu_scaling_enabled"`
	LibraryBuildType  string  `json:"library_build_type"`
	Machine           Machine `json:"machine,omitempty"`
}

type ElementType

type ElementType generic.Type

type Machine

type Machine struct {
	Architecture    string            `json:"architecture"`
	Hostname        string            `json:"hostname"`
	GPUArchitecture string            `json:"gpu_architecture"`
	Attributes      map[string]string `json:"attributes"`
}

type Suite

type Suite struct {
	Context        Context              `json:"context"`
	Benchmarks     Benchmarks           `json:"benchmarks"`
	GPUInformation *nvidiasmi.NvidiaSmi `json:"gpu_information,omitempty"`
}

func New

func New(path string) (Suite, error)

func (Suite) Filter

func (s Suite) Filter(filter Benchmark) (Benchmarks, error)

func (Suite) FilterByName

func (s Suite) FilterByName(rx string) (Benchmarks, error)

func (*Suite) Merge

func (s *Suite) Merge(other Suite)

Jump to

Keyboard shortcuts

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