bm

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bm

type Bm struct {
	CreateStore bool
	Store       *store.Store
	Name        string
	Concurrency int
	Iterations  int
	Before      func(bm *Bm)
	After       func(bm *Bm)
	Work        func(bm *Bm, start int, end int) error
}

Bm benchmark

func (*Bm) Execute

func (b *Bm) Execute() *BmResult

Execute runs the benchmark

type BmResult

type BmResult struct {
	Bm           *Bm
	Time         float64
	Transactions float64

	MemStatsBeforeRun runtime.MemStats
	MemStatsBeforeGC  runtime.MemStats
	MemStatsAfterGC   runtime.MemStats
}

BmResult benchmark result

func (BmResult) String

func (b BmResult) String() string

Jump to

Keyboard shortcuts

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