# wrk

Multithreaded HTTP benchmarking with configurable connections and LuaJIT callbacks\.

ID: Q45 · Revision: 29

Type: software · License: Modified Apache 2\.0, version 2\.0\.1; bundled\-component notices apply[^wrk-license] · Status: active

Website: https://github.com/wg/wrk



wrk is a command\-line HTTP benchmarking tool that combines multiple threads with event\-driven network handling\. It maintains a configured number of connections for a test duration and can use LuaJIT scripts to customize requests, responses and reporting\.[^wrk-readme]

## Capabilities and substitutions

### Threaded HTTP benchmarks — supported

Configured connections are distributed across worker threads for a timed run\.[^wrk-readme]

Use case: Focused HTTP endpoint benchmarking · Platforms: epoll/kqueue\-based systems · Region: Version, plan and platform requirements apply

### Lua request and reporting hooks — supported

Independent worker environments provide lifecycle callbacks\.[^wrk-scripting]

Use case: Focused HTTP endpoint benchmarking · Platforms: epoll/kqueue\-based systems · Region: Version, plan and platform requirements apply

### Low\-overhead custom processing — limited

Per\-request generation and response parsing reduce available generator capacity\.[^wrk-readme][^wrk-scripting]

Use case: Focused HTTP endpoint benchmarking · Platforms: epoll/kqueue\-based systems · Region: Version, plan and platform requirements apply

### [Substitute for hey](/hey) — limited

Can replace focused HTTP benchmarks with thread/connection controls and Lua hooks; pacing semantics and scripts differ\.[^wrk-readme][^hey-readme]

Use case: Focused HTTP endpoint benchmarking · Platforms: epoll/kqueue\-based systems · Region: Version, plan and platform requirements apply

## References

[^wrk-license]: [wrk license](<https://github.com/wg/wrk/blob/master/LICENSE>) — Modified Apache 2\.0 version 2\.0\.1 (vendor; retrieved 2026-10-07T11:21:26Z)

[^wrk-readme]: [wrk documentation](<https://github.com/wg/wrk/blob/master/README.md>) — Thread/connection model and scripting overhead (vendor; retrieved 2026-10-07T11:20:49Z)

[^wrk-scripting]: [wrk Lua scripting API](<https://github.com/wg/wrk/blob/master/SCRIPTING>) — Independent thread environments, request callbacks and errors (vendor; retrieved 2026-10-07T11:20:59Z)

[^hey-readme]: [hey documentation](<https://github.com/rakyll/hey/blob/master/README.md>) — Worker\-level QPS, duration/request count, HTTP2 and platforms (vendor; retrieved 2026-10-07T11:20:59Z)

Source revision: https://substitutefor.net/entities/Q45?revision=29
