subcmd

package
v0.0.0-...-4fdfd55 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "benchmark",
	Short: "Benchmark is a tool to measure Engine's performance",
	Long:  "Benchmark is a tool to measure and find the limitation of Engine's performance.",
}

Functions

This section is empty.

Types

type Connections

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

func NewConncetions

func NewConncetions(users int, log log.Logger) *Connections

func (*Connections) Run

func (c *Connections) Run()

type Initializer

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

func NewInitializer

func NewInitializer(endpoint string, users, skip int, l log.Logger) (*Initializer, error)

func (*Initializer) Run

func (init *Initializer) Run() error

type Latency

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

func (*Latency) Average

func (l *Latency) Average() time.Duration

func (*Latency) StartTimer

func (l *Latency) StartTimer()

func (*Latency) Update

func (l *Latency) Update(d time.Duration)

type LoadTester

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

func NewLoadTester

func NewLoadTester(endpoint string, users, load, skip int, l log.Logger) (*LoadTester, error)

func (*LoadTester) Run

func (lt *LoadTester) Run() error

Jump to

Keyboard shortcuts

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