master

package
v0.0.0-...-dbe1bcb Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BatchSizeBlockSizeOpts = options.OptionsRange2pow(
	options.BenchOptions{1 << 16, 1, 1},
	options.BenchOptions{1 << 16, 1 << 18, 512}, 9)
View Source
var BlockSizeOpts = options.OptionsRange2pow(
	options.BenchOptions{1 << 16, 1, 64},
	options.BenchOptions{1 << 16, 1 << 18, 64}, 9)
View Source
var ErrExists = errors.New("results for this bench already exist")
View Source
var LargeBlockOpts = options.OptionsRange2pow(
	options.BenchOptions{1, 1 << 18, 64},
	options.BenchOptions{1 << 16, 1 << 18, 64}, 9)

Functions

func NoTag

Types

type BatchSpec

type BatchSpec struct {
	Datastores []options.WorkerDatastore
	// instance type -> worker id
	Workers map[string][]Worker

	// instance type -> series id
	Jobs map[string][]*Series
}

func BuildBatch

func BuildBatch(new func() (*BatchSpec, error), cont bool) (*BatchSpec, error)

func (*BatchSpec) Start

func (b *BatchSpec) Start() error

type DsFilter

type Log2Ticks

type Log2Ticks struct{}

func (Log2Ticks) Ticks

func (t Log2Ticks) Ticks(min, max float64) []plot.Tick

Ticks returns Ticks in a specified range

type Piper

type Piper interface {
	TeeReader(r io.Reader, w io.Writer) io.Reader
}

type Series

type Series struct {
	Opts     []options.BenchOptions
	Test     string // defined in Worker/worker_test.go
	PlotName string

	// ds -> Opts
	Results map[string]map[int]*parse.Benchmark
	// contains filtered or unexported fields
}

func BenchAddBatch

func BenchAddBatch() *Series

func BenchBSizingAdd

func BenchBSizingAdd() *Series

func BenchBSizingAddBatch

func BenchBSizingAddBatch() *Series

func BenchBSizingGet

func BenchBSizingGet() *Series

func BenchBSizingHas

func BenchBSizingHas() *Series

func BenchBasicAdd

func BenchBasicAdd() *Series

func BenchBasicAddBatch

func BenchBasicAddBatch() *Series

func BenchBasicGet

func BenchBasicGet() *Series

func BenchBasicHas

func BenchBasicHas() *Series

type TimeTicks

type TimeTicks struct {
	Ticker plot.Ticker
}

TimeTicks is suitable for axes representing time values.

func (TimeTicks) Ticks

func (t TimeTicks) Ticks(min, max float64) []plot.Tick

Ticks implements plot.Ticker.

type Worker

type Worker struct {
	Type string
	Spec map[string]interface{}
}

type ZeroLogScale

type ZeroLogScale struct{}

hacky version of logscale which doesn't panic

func (ZeroLogScale) Normalize

func (ZeroLogScale) Normalize(min, max, x float64) float64

Normalize returns the fractional logarithmic distance of x between min and max.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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