go-stress-testing drives concurrent HTTP, WebSocket, and gRPC requests from the terminal and prints QPS and latency stats.
Overview
go-stress-testing is a load testing tool written in Go. Each simulated user runs in its own goroutine to drive traffic against a target URL or protocol endpoint. It reports per-second progress and a final summary with success and failure counts, QPS, latency extremes, averages, and returned status codes.
Basic usage sets concurrency, requests per user, and a target address from the command line. The tool supports HTTP/1.1 and HTTP/2, including keep-alive connections, and can load request details from curl-format files for non-GET methods, headers, cookies, and bodies. File-based payloads support binary uploads via data flags.
gRPC benchmarking requires small custom Go code to describe the service call. After a run it can emit an HTML report with optional scoring of results. Prebuilt binaries are offered for macOS, Linux, and Windows, and installation is also available through Go tooling.
Documentation in the project compares common alternatives such as ab, Locust, and JMeter and walks through large-scale connection tests, but the tool itself is the standalone CLI binary.
Key features
- Concurrent goroutine-based users
- HTTP and HTTP/2 load
- curl file request import
- gRPC benchmark hooks
- Live per-second metrics
- HTML result report
- WebSocket stress support
- Cross-platform binaries
Use cases
- API capacity testing
- QPS baseline measurement
- gRPC service stress tests
- Pre-release performance checks