runner

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: AGPL-3.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stat

type Stat struct {
	Name  string
	Count int
	Total time.Duration
	Max   time.Duration
	// contains filtered or unexported fields
}

func NewStat

func NewStat(name string) *Stat

func (*Stat) Add

func (s *Stat) Add(dur time.Duration)

func (Stat) Report

func (s Stat) Report()

func (Stat) ReportComputer

func (s Stat) ReportComputer()

ReportComputer reports the stat in a computer friendly form in microseconds.

type TestRun

type TestRun struct {
	// contains filtered or unexported fields
}

TestRun represents one test run, including all the structures used for the test

func NewTestRun

func NewTestRun(metricsChan chan *schema.MetricData, queriesChan chan string, addsPerSec, addThreads, initialIndexSize, queriesPerSec uint32, concQueries int) *TestRun

NewTestRun Instantiates a new test run

func (*TestRun) Init

func (t *TestRun) Init(ctx context.Context)

Init prepares to run

func (*TestRun) PrintStats

func (t *TestRun) PrintStats()

PrintStats writes all the statistics in human readable format into stdout

func (*TestRun) Run

func (t *TestRun) Run()

Run executes the run

func (*TestRun) Wait

func (t *TestRun) Wait()

Jump to

Keyboard shortcuts

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