Vegeta fires HTTP requests at a steady rate, records results, and reports latency and success metrics from the command line or Go code.
Overview
Vegeta is an HTTP load testing tool built to sustain a configurable request rate against one or more endpoints. It can run as a standalone CLI designed for Unix-style pipelines or embed as a Go library for custom tooling.
The attack command reads targets from files or standard input in HTTP or JSON formats, supports custom headers and bodies, TLS client certificates, HTTP/2, redirects, timeouts, and DNS tuning. Results stream to binary output for the report command, which can emit human text, JSON, histograms, or HDR plots with latency percentiles, throughput, and status-code breakdowns.
Operators can chain Vegeta with jq or other generators for dynamic targets, split load across machines when a single host hits file-descriptor limits, and optionally expose a Prometheus metrics endpoint during an attack for Grafana dashboards. Prebuilt binaries and package managers cover macOS, Linux, and FreeBSD installs.
Library consumers compose Attacker, Targeter, and Pacer types to script bespoke benchmarks while sharing the same result encoding format as the CLI.
Key features
- Fixed request-rate attacks
- HTTP and JSON target formats
- Rich latency and status reports
- Prometheus exporter during runs
- TLS and HTTP/2 client options
- Composable UNIX pipeline design
- Go library with shared metrics types
- Distributed load via multiple agents
Use cases
- API capacity benchmarking
- Regression testing response latency
- Steady-traffic soak tests
- CI performance smoke checks
- Coordinated multi-host load drills