Versions in this module Expand all Collapse all v0 v0.1.0 Jan 5, 2020 Changes in this version + var Bench = Params + var Test = Params + func RunBenchmarks(b *testing.B, setup *Setup) + func RunTests(t *testing.T, setup *Setup) + func StartClose(c Combiner) func() + type AsyncCombiner interface + DoAsync func(op interface{}) + type Batcher interface + Do func(op interface{}) + Finish func() + Start func() + type Combiner interface + Do func(op interface{}) + type Desc struct + Bounded bool + Create func(exe Batcher, bound int) Combiner + Name string + type Descs []Desc + type Params struct + Bounds []int + Procs []int + WorkDo []int + WorkFinish []int + WorkStart []int + func (params *Params) Iterate(descs Descs, fn func(*Setup)) + type Runner interface + Close func() + Run func() + type Setup struct + Bounds int + Create func(exe Batcher, bound int) Combiner + Name string + Procs int + WorkDo int + WorkFinish int + WorkStart int + func (setup *Setup) Bench(b *testing.B, name string, bench func(b *testing.B, setup *Setup)) + func (setup *Setup) FullName(test string) string + func (setup *Setup) Make() (*Worker, Combiner) + func (setup *Setup) Test(t *testing.T, name string, test func(t *testing.T, setup *Setup)) + type Worker struct + Batches int64 + SleepDo time.Duration + SleepFinish time.Duration + SleepStart time.Duration + Total int64 + WorkDo int + WorkFinish int + WorkStart int + func NewWorker() *Worker + func (exe *Worker) Do(v interface{}) + func (exe *Worker) Finish() + func (exe *Worker) Start()