Autocannon
$ autocannon Community Med RiskAutocannon (autocannon) is a high-throughput HTTP/1.1 benchmarking tool written in Node.js by Matteo Collina, inspired by wrk. Passing -j or --json suppresses the live progress bar and outputs structured latency and throughput JSON directly to stdout.
npm install -g autocannon Runs high-concurrency local HTTP/1.1 benchmarks with structured JSON output right inside Node.js dev loops.
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
First-class -j / --json flag disables progress bars and outputs clean JSON directly to stdout.
- Native
-j/--jsonflag documented in README
Defaults to bounded 10-second duration (-d 10) and 10 connections (-c 10), though high concurrency or -p pipelining can saturate servers.
- Bounded defaults (
-c 10 -d 10) and-atotal-request cap
Runs anywhere Node.js is installed via npm install -g autocannon or npx autocannon across macOS, Linux, and Windows.
- Available via
npmandnpxon all major OSes
Supports HTTP pipelining (-p), worker threads (-w), HAR replay, and custom headers/bodies.
- Supports
-ppipelining,-wworkers, and-Rrate limiting
Well-known Node.js ecosystem tool maintained by Matteo Collina under MIT license.
- Active
mcollina/autocannonrepository
Clear README documenting CLI options, JSON result fields, and programmatic API.
- Complete CLI flags reference in repository README
Security, Auth & Guardrails
Accepts transient -H headers per command; stores no credentials on disk.
Free, MIT open-source Node.js package.
# Autocannon Agent Rules - Always pass `-j` (`--json`) to disable the interactive terminal progress bar. - Keep `-d` (duration) or `-a` (amount) bounded and target only localhost or approved staging URLs.
Agent-Ready Command Recipes
Safe Read-Only Queries
autocannon -j -c 10 -d 5 http://localhost:3000/health
Runs a 5-second benchmark at 10 connections and prints JSON latency/throughput statistics (-j).
Controlled Writes & Previews
autocannon -j -c 5 -a 100 -m POST -H 'Content-Type: application/json' -b '{"ping":true}' http://localhost:3000/api Sends exactly 100 POST requests (-a 100) and emits JSON performance stats.
Strengths for Agents
- +
-jsuppresses interactive progress output and prints clean JSON directly to stdout. - + Supports HTTP/1.1 pipelining (
-p) and bounded request counts (-a).
Caveats & Pitfalls
- ! Supports HTTP/1.1 only (no HTTP/2 or gRPC benchmarking).
- ! Without
-j, renders an animated progress bar and ASCII tables.