# Vegeta

HTTP load generator and Go library with controlled pacing and reusable result streams\.

ID: Q151 · Revision: 135

Type: software · License: MIT[^vegeta-license] · Status: active

Website: https://github.com/tsenart/vegeta



Vegeta is an MIT\-licensed HTTP load\-testing tool available as a command\-line program and Go library\. It is oriented toward controlled request rates, composable target input and reusable result streams rather than a graphical scenario editor\.[^vegeta-readme]

## Request inputs and reusable results

The CLI accepts text or newline\-delimited JSON targets, allowing another program to generate a workload\. JSON bodies are encoded in the target representation, while the text format references body files\. Execution results can be saved and transformed into reports, plots or interchange formats\. Separating traffic generation from analysis is useful when the same recorded run needs several views without repeating requests against the service\.[^vegeta-readme]

## Rate and concurrency are different controls

Vegeta's worker pool can grow to sustain the requested rate, subject to a configured maximum\. Unlimited\-rate operation with an excessively large worker ceiling can exhaust generator resources\. The Go API also exposes a Pacer interface that controls the intended hit schedule, including custom pacing implementations\. The selected rate is consequently a workload goal, not a guarantee that an undersized generator can achieve it\.[^vegeta-readme][^vegeta-api]

## Reading the measurements

The library distinguishes sent\-request rate from successful\-request throughput and tracks additional waiting time for outstanding responses\. Its Metrics structure also includes status\-code counts, unique errors and latency summaries\. These distinctions matter when a server slows down: a configured input rate, achieved send rate and successful completion rate describe different parts of the run\. A single throughput number should not stand in for all three\.[^vegeta-api]

## License and automation boundaries

Vegeta's MIT license covers the supplied project\. Its library and CLI use separate versioning so a change to one interface need not imply the same compatibility change in the other\. Automated users should therefore track the specific interface they consume and preserve target and result formats alongside a benchmark configuration\. A shell pipeline can integrate the executable without turning it into a complete application\-testing framework\.[^vegeta-license][^vegeta-readme]

## Substitution scope

Vegeta can substitute for [hey](/hey) for focused HTTP endpoint load tests when target streams and rate\-oriented execution are useful\. The rate flags are not equivalent: hey limits each worker, while Vegeta specifies the request stream's rate\. Reconcile concurrency, request data and output interpretation before comparing results\. This assessment is based on documented operation, not a measured claim that one generator is faster\.[^vegeta-readme][^hey-readme]

## Capabilities and substitutions

### Rate\-oriented HTTP load — supported

Worker limits bound attempts to sustain the configured request rate\.[^vegeta-readme]

Use case: Focused HTTP load generation and analysis · Platforms: CLI binaries, Go library · Region: Version, plan and platform requirements apply

### Composable results — supported

Saved result streams support separate reporting and encoding\.[^vegeta-readme]

Use case: Focused HTTP load generation and analysis · Platforms: CLI binaries, Go library · Region: Version, plan and platform requirements apply

### Go integration — supported

Library exposes targets, pacing and metric aggregation\.[^vegeta-api]

Use case: Focused HTTP load generation and analysis · Platforms: CLI binaries, Go library · Region: Version, plan and platform requirements apply

### [Substitute for hey](/hey) — limited

Can replace focused HTTP benchmarks with rate\-oriented target streams; per\-worker and overall pacing settings must be translated\.[^vegeta-readme][^hey-readme]

Use case: Focused HTTP load generation and analysis · Platforms: CLI binaries, Go library · Region: Version, plan and platform requirements apply

## References

[^vegeta-license]: [Vegeta license](<https://github.com/tsenart/vegeta/blob/master/LICENSE>) — MIT terms (vendor; retrieved 2026-10-07T11:21:10Z)

[^vegeta-readme]: [Vegeta documentation](<https://github.com/tsenart/vegeta/blob/master/README.md>) — CLI/library, target formats, pacing and reporting (vendor; retrieved 2026-10-07T11:21:26Z)

[^vegeta-api]: [Vegeta library API](<https://pkg.go.dev/github.com/tsenart/vegeta/v12/lib>) — Pacer and Metrics semantics (vendor; retrieved 2026-10-07T11:21:35Z)

[^hey-readme]: [hey documentation](<https://github.com/rakyll/hey/blob/master/README.md>) — Worker\-level QPS, duration/request count, HTTP2 and platforms (vendor; retrieved 2026-10-07T11:20:59Z)

Source revision: https://substitutefor.net/entities/Q151?revision=135
