Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Autocannon

$ autocannon Community Med Risk
Matteo Collina · Browser & Web · MIT · macos / linux / windows

Autocannon (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.

FCRS-1.0 Score
84 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g autocannon
CLI vs MCP Decision CLI Only

Runs high-concurrency local HTTP/1.1 benchmarks with structured JSON output right inside Node.js dev loops.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

First-class -j / --json flag disables progress bars and outputs clean JSON directly to stdout.

  • Native -j / --json flag documented in README
Trust & Safety 20 / 25

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 -a total-request cap
Setup & Portability 13 / 15

Runs anywhere Node.js is installed via npm install -g autocannon or npx autocannon across macOS, Linux, and Windows.

  • Available via npm and npx on all major OSes
Utility & Efficiency 13 / 15

Supports HTTP pipelining (-p), worker threads (-w), HAR replay, and custom headers/bodies.

  • Supports -p pipelining, -w workers, and -R rate limiting
Maintenance & Lineage 8 / 10

Well-known Node.js ecosystem tool maintained by Matteo Collina under MIT license.

  • Active mcollina/autocannon repository
Docs & Verifiability 8 / 10

Clear README documenting CLI options, JSON result fields, and programmatic API.

  • Complete CLI flags reference in repository README

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key
Credential Storage

Accepts transient -H headers per command; stores no credentials on disk.

Side Effects
Read-Only Remote Write
Cost & Quotas

Free, MIT open-source Node.js package.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Benchmark a local endpoint with JSON output
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

Benchmark a POST endpoint with fixed request count
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

  • + -j suppresses 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.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI