Vegeta
$ vegeta Community Med RiskVegeta is a versatile Go HTTP load-testing tool built around composable Unix pipes: vegeta attack emits binary metrics, and vegeta report -type=json or vegeta encode -to=json renders exact latency percentiles and error tallies.
brew install vegeta Composable attack | report -type=json shell pipeline is unmatched for deterministic constant-RPS regression checks.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Non-interactive Unix pipeline design with vegeta report -type=json and vegeta encode -to=json, though omitting -duration runs forever and raw attack stdout is binary.
- Supports
vegeta report -type=jsonandvegeta encode -to=json
Constant-rate testing avoids sudden burst overload, though omitting -duration creates an unbounded loop.
- Requires explicit
-durationto bound execution
Single static Go binary available via brew, go install, and GitHub Releases.
- Zero-dependency static Go binary across macOS, Linux, Windows
Avoids coordinated-omission bias via constant arrival-rate pacing and cleanly outputs JSON metrics.
- Constant-RPS pacing and multi-target stdin streams
Well-established tsenart/vegeta OSS tool (MIT), mature and stable.
tsenart/vegetarepository under MIT license
Clear README, subcommand --help, and well-documented JSON report schema.
- Comprehensive README for
attack,report,encode, andplot
Security, Auth & Guardrails
Reads headers from stdin target specs or -header flags per invocation; stores no credentials.
Free, MIT open-source Go binary.
# Vegeta Agent Rules - Always specify a finite `-duration=<time>` (e.g. `-duration=5s`); omitting `-duration` runs indefinitely (`0` = forever). - Never pipe `vegeta attack` raw binary bytes directly to terminal stdout without `| vegeta report` or `-output`.
Agent-Ready Command Recipes
Safe Read-Only Queries
echo 'GET http://localhost:8080/health' | vegeta attack -rate=20/s -duration=5s -timeout=5s | vegeta report -type=json
Sends 20 RPS for 5 seconds and emits a compact JSON metrics summary.
Controlled Writes & Previews
echo 'POST http://localhost:8080/items' | vegeta attack -rate=10/s -duration=5s -body=payload.json -header='Content-Type: application/json' -output=results.bin && vegeta report -type=json results.bin
Persists raw binary samples to results.bin for later report or plot rendering.
Strengths for Agents
- + Constant-rate
attack | report -type=jsonpipeline produces accurate percentile JSON. - + Zero ANSI color noise and supports multi-endpoint target files.
Caveats & Pitfalls
- ! Forgetting
-durationcausesvegeta attackto run indefinitely (-duration=0default). - !
vegeta attackoutputs binary gob data by default unless piped tovegeta report.