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

wrk

$ wrk Community Med Risk
Will Glozer · Code & DevOps · Apache-2.0 · macos / linux

wrk is a lightweight C/LuaJIT HTTP benchmarking tool capable of generating massive concurrency from a single host using -t threads, -c connections, and -d duration. It is strictly non-interactive, though it emits human-formatted text tables by default unless a custom Lua done() script formats JSON.

FCRS-1.0 Score
68 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install wrk
CLI vs MCP Decision CLI Only

Native C/LuaJIT HTTP load generator running locally against target endpoints.

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 15 / 25

Always non-interactive and fast with bounded -d duration, but has no native --json or --csv flag—requiring regex parsing or custom Lua done() hooks.

  • Outputs human-readable text summaries only by default
  • Non-interactive execution bounded by -d
Trust & Safety 17 / 25

Capable of saturating local or remote HTTP servers at high request rates; has no built-in rate limiter or dry-run.

  • Open-loop high-concurrency HTTP generator can overload targets
Setup & Portability 11 / 15

Single small binary on macOS and Linux via Homebrew or distro packages, but lacks native Windows support outside WSL.

  • POSIX-only (epoll/kqueue) architecture
Utility & Efficiency 12 / 15

Extremely low overhead per request and flexible LuaJIT scripting, though lacks built-in coordinated-omission correction (unlike wrk2) or JSON output.

  • Minimal CPU/memory footprint via LuaJIT + event loops
Maintenance & Lineage 6 / 10

Minimalist community tool (wg/wrk) that is feature-complete with infrequent upstream commits.

  • Low commit velocity; stable legacy codebase
Docs & Verifiability 7 / 10

Concise --help output and Lua scripting examples in the GitHub repository.

  • Script examples in scripts/ directory

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key
Credential Storage

No credential store; auth headers must be passed explicitly via -H or Lua scripts.

Side Effects
Read-Only Remote Write
Cost & Quotas

Apache-2.0 open-source C/LuaJIT tool; free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# wrk Agent Rules
- Always bound runs with `-d <duration>` (e.g. `-d10s`) and target `localhost` or approved staging endpoints only.
- Include `--latency` to capture p50/p75/p90/p99 percentiles in the text summary.
- Never pass production URLs or mutating POST endpoints without explicit user approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Run a short local HTTP benchmark with latency percentiles
wrk -t2 -c20 -d10s --latency http://127.0.0.1:8080/health

Benchmarks a local health endpoint for 10 seconds across 2 threads and 20 connections with percentile latency stats.

Strengths for Agents

  • + Generates very high HTTP throughput with tiny CPU overhead.
  • + Always runs non-interactively and terminates reliably after -d.

Caveats & Pitfalls

  • ! No native --json or --csv flag; agents must parse text output or write a custom Lua done() script.
  • ! No native Windows binary; upstream repository sees infrequent updates.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI