wrk2 Experimental wrk fork with constant-throughput scheduling and histogram-based latency accounting.
Overview wrk2 is an HTTP benchmarking fork of wrk that adds constant-throughput scheduling and latency measurement based on intended request times. Its documented goal is to reduce coordinated-omission distortion when slow responses interfere with the planned workload.[2]
Contents Planned throughput In addition to threads, connections and duration, wrk2 accepts an overall requests-per-second target. It measures latency from when a request was intended to be sent, rather than only from its actual transmission. This makes delayed scheduling visible in the reported distribution instead of silently changing the workload as the server slows. The mechanism is documented by the author; no comparative benchmark was performed here.[2]
Statistics and retained scripting API The implementation uses HdrHistogram-backed statistics while retaining wrk's Lua-facing API. Raw-sample-style access is emulated through percentile values, so compatibility at the API surface does not mean the underlying data representation is identical. Existing reporting scripts should be reviewed for assumptions about individual samples before they are reused.[2]
Calibration, precision and status The README calls the project experimental and documents an initial calibration period of about ten seconds, warning that very short runs may not be informative. It also gives approximately one-millisecond timing granularity for the constant-throughput implementation. The supplied license is Apache-2.0. These qualifications limit claims about sub-millisecond precision or production support; they are separate from whether the tool can execute a benchmark.[1] [2]
Substitution scope wrk2 can substitute for wrk when the objective is a controlled-rate HTTP benchmark with latency distributions that include scheduling delay. It is not simply a newer release of the same command: the fork deliberately changes load and measurement semantics. Its Lua compatibility can reduce adaptation work, but rate configuration, calibration duration and statistical interpretation still require review. For existing saturation-oriented runs, changing the tool without matching the experimental question can make historical numbers incomparable.[2] [3] [4]
References wrk2 license Apache License 2.0
vendor · retrieved 2026-10-07 wrk2 documentation Constant throughput, planned-time latency and calibration limits
vendor · retrieved 2026-10-07 wrk documentation Thread/connection model and scripting overhead
vendor · retrieved 2026-10-07 wrk Lua scripting API Independent thread environments, request callbacks and errors
vendor · retrieved 2026-10-07 Also included: 3 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.