Useful when concurrency-driven loading is the intended experiment; not an equivalent substitute for wrk2 constant-rate arrivals or planned-time latency accounting.
Platforms: epoll/kqueue-based systems · Region: Unspecified
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]
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]
Capabilities & limitations
Constant-throughput scheduling
supported
Adds an overall request-rate target and planned-send-time latency accounting.[2]
Controlled-rate HTTP latency benchmarking · epoll/kqueue-based systems · Version, plan and platform requirements apply