Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Clever/go-bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

HTTP benchmarking with customizable log replays written in go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published