substitutefor

software · Q78

wrk2

Experimental wrk fork with constant-throughput scheduling and histogram-based latency accounting.

Suggest a correction

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]

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

1 source · check evidence
https://github.com/giltene/wrk2/blob/master/README.md

Constant throughput, planned-time latency and calibration limits

vendor · checked 2026-10-07

Lua API compatibility

limited

Retains wrk's API but emulates sample access using histogram percentiles.[2]

Controlled-rate HTTP latency benchmarking · epoll/kqueue-based systems · Version, plan and platform requirements apply

1 source · check evidence
https://github.com/giltene/wrk2/blob/master/README.md

Constant throughput, planned-time latency and calibration limits

vendor · checked 2026-10-07

Very short or sub-millisecond measurements

limited

Documented calibration and approximate millisecond granularity constrain interpretation.[2]

Controlled-rate HTTP latency benchmarking · epoll/kqueue-based systems · Version, plan and platform requirements apply

1 source · check evidence
https://github.com/giltene/wrk2/blob/master/README.md

Constant throughput, planned-time latency and calibration limits

vendor · checked 2026-10-07

Can substitute for

These are products or services this entry can replace. Check the task and limitations for each comparison.

wrk for Controlled-rate HTTP latency benchmarking

limited

Can replace controlled-rate benchmark workflows with planned-time latency accounting; measurement semantics and calibration differ.[2][3]

epoll/kqueue-based systems · Version, plan and platform requirements apply

References

  1. wrk2 license

    Apache License 2.0

    vendor · retrieved 2026-10-07
  2. wrk2 documentation

    Constant throughput, planned-time latency and calibration limits

    vendor · retrieved 2026-10-07
  3. wrk documentation

    Thread/connection model and scripting overhead

    vendor · retrieved 2026-10-07
  4. wrk Lua scripting API

    Independent thread environments, request callbacks and errors

    vendor · retrieved 2026-10-07

Discussion & disputes

Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.

No discussion yet.

Sign in with an active account to join the discussion.

Revision history

Open a revision to read an earlier version of this article.

RevisionTimestampEdit summary
622026-10-08 23:44:18/* wbeditentity-create-item:0| */ sf:50cec528-afd8-4668-8abf-9ffd8093ad79:v1 | Add wrk2 as a distinct experimental fork, with calibration, timing granularity and unknown maintenance status. | attribution: /proposals/50cec528-afd8-4668-8abf-9ffd8093ad79