A programmable HTTP stress testing tool. Written in Golang.
git clone https://github.com/abersheeran/httpbenchmark.git
cd httpbenchmark
And then, if use go install
to install it, you can use httpbenchmark
command in your terminal.
httpbenchmark -h
If you want to use it without installing, you can use go run
to run it.
go run main.go -h
httpbenchmark https://example.com
httpbenchmark -X POST -H "Content-Type: application/json" -d '{"key": "value"}' https://httpbin.org/post
httpbenchmark -c 300 -r 100000 https://example.com