boomer

package
v0.0.0-...-ed853dd Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2016 License: Apache-2.0 Imports: 17 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 {
	// Request is the request to be made.
	//Request *http.Request
	Header http.Header

	Method     string
	URL        string
	Username   string
	Password   string
	HostHeader string

	RequestBody string

	// 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

	// H2 is an option to make HTTP/2 requests
	H2 bool

	// Timeout in seconds.
	Timeout int

	// Qps is the rate limit.
	Qps int

	// DisableCompression is an option to disable compression in response
	DisableCompression bool

	// DisableKeepAlives is an option to prevents re-use of TCP connections between different HTTP requests
	DisableKeepAlives bool

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

	// ProxyAddr is the address of HTTP proxy server in the format on "host:port".
	// Optional.
	ProxyAddr *url.URL

	//Enable consul kv, service register performance test
	Consul    bool
	Type      string
	Query     string
	ValueSize int
	// contains filtered or unexported fields
}

Boomer is a load generator

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