Documentation ¶
Index ¶
- Constants
- func AllInvocations(ivs []Invocations) []float64
- func MeanInvocations(ivs []Invocations) []float64
- type ArraySizes
- type B
- type Chan
- type Execution
- func (e *Execution) AddInvocations(is InvocationsFlat) error
- func (e *Execution) Copy() *Execution
- func (e *Execution) ElementCount() int
- func (e *Execution) FlatSlice(s InvocationSampler) []float64
- func (e *Execution) Merge(other *Execution) error
- func (e *Execution) Slice(s InvocationSampler) [][][][][]float64
- type ExecutionSlice
- type ExecutionTransformer
- type ExecutionTransformerFunc
- type ExecutionType
- type ExecutionValue
- type Executions
- type Fork
- type FunctionParams
- type Instance
- type InvocationSampler
- type Invocations
- type InvocationsFlat
- type Iteration
- type NamedExecutionTransformer
- type PerfParams
- type Trial
Constants ¶
View Source
const ( DefaultInstancesSize = 1 DefaultTrialsSize = 5 DefaultForksSize = 10 DefaultIterationsSize = 20 DefaultInvocationsSize = 200 )
Variables ¶
This section is empty.
Functions ¶
func AllInvocations ¶
func AllInvocations(ivs []Invocations) []float64
func MeanInvocations ¶
func MeanInvocations(ivs []Invocations) []float64
Types ¶
type ArraySizes ¶
type B ¶
type B struct { Name string FunctionParams FunctionParams PerfParams *PerfParams }
type Chan ¶
type Chan chan ExecutionValue
func MergeChans ¶
func TransformChan ¶
func TransformChan(transformer ExecutionTransformer, c Chan) Chan
type Execution ¶
type Execution struct { Benchmark *B InstanceIDs []string Instances map[string]*Instance // contains filtered or unexported fields }
func NewExecution ¶
func NewExecutionFromInvocationsFlat ¶
func NewExecutionFromInvocationsFlat(ivf InvocationsFlat) *Execution
func NewExecutionWithDefaults ¶
func NewExecutionWithDefaults(b *B, d ArraySizes) *Execution
func (*Execution) AddInvocations ¶
func (e *Execution) AddInvocations(is InvocationsFlat) error
func (*Execution) ElementCount ¶
func (*Execution) FlatSlice ¶
func (e *Execution) FlatSlice(s InvocationSampler) []float64
func (*Execution) Slice ¶
func (e *Execution) Slice(s InvocationSampler) [][][][][]float64
type ExecutionSlice ¶
type ExecutionSlice interface { Slice(InvocationSampler) [][][][][]float64 FlatSlice(InvocationSampler) []float64 }
type ExecutionTransformer ¶
type ExecutionTransformer interface {
// contains filtered or unexported methods
}
type ExecutionTransformerFunc ¶
func ConstantFactorExecutionTransformerFunc ¶
func ConstantFactorExecutionTransformerFunc(factor float64, roundingPrecision int) ExecutionTransformerFunc
type ExecutionType ¶
type ExecutionType int
const ( ExecNext ExecutionType = iota ExecError ExecStart ExecEnd )
type ExecutionValue ¶
type ExecutionValue struct { Type ExecutionType Exec *Execution Err error }
type Executions ¶
type Executions []*Execution
func (Executions) Len ¶
func (e Executions) Len() int
func (Executions) Less ¶
func (e Executions) Less(i, j int) bool
func (Executions) Swap ¶
func (e Executions) Swap(i, j int)
type FunctionParams ¶
type FunctionParams []string
func (FunctionParams) String ¶
func (fp FunctionParams) String() string
type InvocationSampler ¶
type InvocationSampler func([]Invocations) []float64
func SampleInvocations ¶
func SampleInvocations(samples int) InvocationSampler
type Invocations ¶
type InvocationsFlat ¶
type Iteration ¶
type Iteration struct { ID int Invocations []Invocations }
type NamedExecutionTransformer ¶
type NamedExecutionTransformer struct { ExecutionTransformer Name string }
type PerfParams ¶
type PerfParams struct {
// contains filtered or unexported fields
}
func (*PerfParams) Add ¶
func (pp *PerfParams) Add(param, value string)
func (*PerfParams) Copy ¶
func (pp *PerfParams) Copy() *PerfParams
func (*PerfParams) Get ¶
func (pp *PerfParams) Get() map[string]string
func (*PerfParams) Keys ¶
func (pp *PerfParams) Keys() []string
func (*PerfParams) String ¶
func (pp *PerfParams) String() string
Click to show internal directories.
Click to hide internal directories.