requester

package
v0.7.3 Latest Latest
Warning

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

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

Documentation

Overview

Package requester provides commands to run load tests and display results.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Work

type Work struct {
	// N is the total number of requests to make.
	N int
	// C is the concurrency level, the number of concurrent workers to run.
	C        int
	Host     string
	Protocol string
	// Qps is the rate limit.
	Qps int
	// Output represents the output type. If "csv" is provided, the
	// output will be dumped as a csv stream.
	Output string
	Times  int
	// 1: KvRawGet
	// 2: KvRawPut
	// 3: KvRawDelete
	// 4: KvRawExecute
	// 5: KvSelect
	// 6: KvInsert
	// 7: KvDelete
	// 8: CreateRange
	// 9: DeleteRange
	// 10: TransferLeader
	Mode int
	// contains filtered or unexported fields
}

func (*Work) Finish

func (b *Work) Finish()

func (*Work) Run

func (b *Work) Run()

Run makes all the requests, prints the summary. It blocks until all work is done.

Jump to

Keyboard shortcuts

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