Skip to content

HTTP/HTTPS load testing and benchmarking tool

License

Notifications You must be signed in to change notification settings

EricNeid/go-bench

 
 

Repository files navigation

Go Report Card Test Linting Release Gitpod Ready-to-Code

About

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.

Quickstart

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

Installation

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

Usage

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

Question or comments

Please feel free to open a new issue: https://github.com/EricNeid/go-bench/issues

About

HTTP/HTTPS load testing and benchmarking tool

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 95.4%
  • Makefile 4.6%