boomer

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: 20 Imported by: 0

Documentation

Overview

Package boomer 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 Boomer

type Boomer struct {
	RangeNumber uint64
	MultiNumber uint64
	// 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

	//
	User     string
	Password string
	Host     string
	Database string
	Table    string
	Protocol string

	// Qps is the rate limit.
	Qps int

	DLen int

	// Output represents the output type. If "csv" is provided, the
	// output will be dumped as a csv stream.
	Output string

	Times int

	// 1: random insert
	// 2: order insert
	// 3: random select
	// 4: single select
	Mode int

	// only for order insert and order select
	Base int

	//records chan *record // verify area
	Verify           bool
	StepVerify       bool
	DeletePeerVerify uint64
	ClusterId        uint64
	ClusterToken     string
	MasterAddr       string
	// contains filtered or unexported fields
}

func (*Boomer) Run

func (b *Boomer) 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