This tool is a simple benchmark tool to test the performance and throughput of your server.
Forked from https://github.com/cmpxchg16/gobench, so be sure to check their project out as well.
Checkout the project and run make (given that go build chain is installed. Hint: You can simply click on the Gitpod link above and compile it online without setting up a tool chain.
make all
Simply grep the latest available binary from the release page and put it somewhere in your path.
If go is installed and $GOPATH/bin is in your path, you can download and install the tool directly by using go install.
Download tool:
go install github.com/EricNeid/go-bench/cmd/gobench@v0.3.0
Running HTTP GET:
gobench -u http://localhost:80 -k=true -c 500 -t 10
Running HTTP Post:
gobench -u http://localhost:80 -k=true -c 500 -t 10 -d ./data.json
gobench -u http://localhost:80 -k=true -c 500 -t 10 -b '{\"name\":\"Timmy\"}'
Getting help:
gobench --help
Please feel free to open a new issue: https://github.com/EricNeid/go-bench/issues