wrk
$ wrk Community Med Riskwrk 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.
brew install wrk Native C/LuaJIT HTTP load generator running locally against target endpoints.
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
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
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
Single small binary on macOS and Linux via Homebrew or distro packages, but lacks native Windows support outside WSL.
- POSIX-only (
epoll/kqueue) architecture
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
Minimalist community tool (wg/wrk) that is feature-complete with infrequent upstream commits.
- Low commit velocity; stable legacy codebase
Concise --help output and Lua scripting examples in the GitHub repository.
- Script examples in
scripts/directory
Security, Auth & Guardrails
No credential store; auth headers must be passed explicitly via -H or Lua scripts.
Apache-2.0 open-source C/LuaJIT tool; free.
# 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
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
--jsonor--csvflag; agents must parse text output or write a custom Luadone()script. - ! No native Windows binary; upstream repository sees infrequent updates.