Documentation ¶
Overview ¶
This definition package implements the transformation of a YAML definition to a nomi benchmark
Index ¶
Constants ¶
View Source
const ( StopAll StopCommand = "stop-all" Lower ExpectRunningSymbol = "<" Greater ExpectRunningSymbol = ">" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type BenchmarkDef ¶
type BenchmarkDef struct { Application Application Instructions Instructions InstanceGroupSize int `yaml:"instancegroup-size"` }
func BenchmarkDefByFile ¶
func BenchmarkDefByFile(filePath string) (BenchmarkDef, error)
BenchmarkDefByFile procudes a benchmark definition out of a YAML file Return a benchmark definition object and error
func BenchmarkDefByRawInstructions ¶
func BenchmarkDefByRawInstructions(instructions string, igSize int) (BenchmarkDef, error)
BenchmarkDefByRawInstructions creates a benchmark definition using raw instructions and instance group size Return a benchmark definition and error
type ExpectRunning ¶
type ExpectRunning struct { Symbol ExpectRunningSymbol `yaml:"symbol"` Amount int `yaml:"amount"` }
type ExpectRunningSymbol ¶
type ExpectRunningSymbol string
type Instruction ¶
type Instruction struct { Start Start Float Float ExpectRunning ExpectRunning Sleep int `yaml:"sleep"` Stop StopCommand `yaml:"stop"` }
type Instructions ¶
type Instructions []Instruction
type StopCommand ¶
type StopCommand string
Click to show internal directories.
Click to hide internal directories.