# Vegeta

> HTTP load testing tool and library built to drill HTTP services with a constant request rate

Source: https://talira.ai/catalog/vegeta-td5wyv50
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [testing / load](https://talira.ai/categories/testing/load)
- Platforms: linux, macos, windows, cli[^2][^4]
- Licence: MIT[^3]
- Pricing: Free and open source[^3]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^3]
- Self-hostable: yes[^2]
- Creator: Tomás Senart

Vegeta is an HTTP load testing command-line tool and Go library that sends requests at a constant rate rather than with a fixed number of users, which avoids the coordinated omission problem that hides latency in many load generators. Its commands follow UNIX composition: `vegeta attack` reads targets from stdin or a file (in a simple HTTP format or JSON, with headers and bodies) and writes binary results that `vegeta report` turns into text, JSON or latency histograms, `vegeta plot` into an interactive HTML latency chart, and `vegeta encode` into JSON or CSV. It supports HTTP/2, h2c, TLS client certificates and lazily generated targets, can expose a [Prometheus](https://talira.ai/catalog/prometheus-198e2rss.md) exporter during an attack, and distributed tests run by starting attacks on several machines and merging their result files. It ships as a single static binary for Linux, [macOS](https://talira.ai/catalog/macos-8swyggxb.md), Windows, [FreeBSD](https://talira.ai/catalog/freebsd-d628b1cm.md) and [OpenBSD](https://talira.ai/catalog/openbsd-1kbtwmnq.md), and is MIT licensed.

## Links

- GitHub: https://github.com/tsenart/vegeta
- Docs: https://pkg.go.dev/github.com/tsenart/vegeta/v12/lib

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/vegeta>[^1]

## Problems it solves

- hit an HTTP endpoint at exactly 1,000 requests per second for five minutes and see the latency percentiles
- my load test tool hides slow responses because it waits for each one before sending the next
- load test an API from the command line and pipe the results into other tools
- plot request latency over time from a load test as an HTML chart
- generate a latency histogram with my own buckets from a load test
- feed generated targets with changing request bodies into a load test from a script
- load test a service over HTTP/2 or with TLS client certificates
- add constant-rate HTTP load generation to a Go program as a library
- export load test results to CSV or JSON for analysis
- watch a load test's request rate and latency in Prometheus and Grafana while it runs
- find the request rate where our service starts returning errors
- a single static binary for HTTP benchmarking I can drop on any server

## Features

- constant request rate that avoids coordinated omission
- usable as a CLI and a Go library
- attack, report, plot and encode commands that compose with pipes
- targets in HTTP or JSON format, read from stdin, a file or lazily from a generator
- text, JSON, histogram and HDR plot reports
- interactive HTML latency plot
- JSON, CSV and gob result encodings
- HTTP/2, h2c, TLS client certificates and custom root CAs
- Prometheus exporter during attacks, with a sample Grafana dashboard
- report merges result files from several machines
- static binaries for Linux, macOS, Windows, FreeBSD and OpenBSD

## Limitations

- No built-in coordinator for distributed tests: you run an attack on each machine yourself (for example with pdsh) and merge the result files[^2]

## Capabilities

- Has a command line tool: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.28 out of 1.
Signals: backing 0.20, extensibility 0.20.

- created by Tomás Senart

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Locust](https://talira.ai/catalog/locust-ttnvtx2m.md): An open source load testing tool: define user behaviour in plain Python and swarm your system with millions of simultaneous users
- [Apache JMeter](https://talira.ai/catalog/apache-jmeter-rh6gkdqd.md): A 100% pure Java application designed to load test functional behavior and measure performance
- [Artillery](https://talira.ai/catalog/artillery-3tg5a71a.md): Full-stack performance and reliability testing: scalable API and Playwright load testing
- [Grafana k6](https://talira.ai/catalog/grafana-k6-76xspfnj.md): Like unit testing, for performance
- [Gatling](https://talira.ai/catalog/gatling-g21rajx7.md): Modern load testing as code
- [oha](https://talira.ai/catalog/oha-ht163fda.md): HTTP load generator with a realtime terminal UI, inspired by hey

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://github.com/tsenart/vegeta/blob/master/README.md (checked 20 Nov 2026)
[^3]: https://github.com/tsenart/vegeta/blob/master/LICENSE (checked 20 Nov 2026)
[^4]: https://github.com/tsenart/vegeta/releases (checked 20 Nov 2026)
