benchmark

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBenchmarkInterrupted = errors.New("benchmark interrupted")

Functions

This section is empty.

Types

type Args

type Args struct {
	Address     string
	Requests    int
	Connections int
	Timeout     string
	Test        string
	Serializer  string
	DataSize    int
	KeepGoing   bool
}

type Benchmark

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

func New

func New(args *Args, logger *log.Logger) (*Benchmark, error)

func (*Benchmark) Run

func (b *Benchmark) Run(cmd string) error

Jump to

Keyboard shortcuts

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