go-bench

command module
v0.0.0-...-d635fbf Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

README

Developing

go get github.com/Clever/go-bench
make

Usage

You can run go-bench using:

go run bench.go

Or:

make build
./bin/bench

The following command-line flags are supported:

flag required? description
--speed no; default 1 Sets multiplier for playback speed
--output no; not written if not provided Path to file to which JSON output should be written
--root yes URL root for requests

go-bench reads requests to playback from standard input in the following format:

time,method,path,auth,extra
item required? description
time yes Time in ms after initialization to send request
method yes HTTP method to use for request
path yes Path for request
auth no Authentication header value (will be passed to server directly as given)
extra no Information about the request that will be written to the output file

If you need a simple server to test your usage of go-bench, you can start one using:

go run start_server.go

Vendoring

Please view the dev-handbook for instructions.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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