Version: v1.0.0 Latest Latest

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

Go to latest
Published: Jul 30, 2020 License: AGPL-3.0 Imports: 16 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


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
t or T : Toggle theme light dark auto
y or Y : Canonical URL