{"schemaVersion":"1.0","record":{"label":"wrk2","description":"Experimental wrk fork with constant-throughput scheduling and histogram-based latency accounting.","aliases":[],"kind":"software","website":"https://github.com/giltene/wrk2","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.","license":"Apache-2.0","lifecycle":"unknown","example":false,"features":[{"name":"Constant-throughput scheduling","status":"supported","detail":"Adds an overall request-rate target and planned-send-time latency accounting.","useCase":"Controlled-rate HTTP latency benchmarking","platforms":["epoll/kqueue-based systems"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://github.com/giltene/wrk2/blob/master/README.md","locator":"Constant throughput, planned-time latency and calibration limits","retrievedAt":"2026-10-07T11:21:26Z","kind":"vendor"}]},{"name":"Lua API compatibility","status":"limited","detail":"Retains wrk's API but emulates sample access using histogram percentiles.","useCase":"Controlled-rate HTTP latency benchmarking","platforms":["epoll/kqueue-based systems"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://github.com/giltene/wrk2/blob/master/README.md","locator":"Constant throughput, planned-time latency and calibration limits","retrievedAt":"2026-10-07T11:21:26Z","kind":"vendor"}]},{"name":"Very short or sub-millisecond measurements","status":"limited","detail":"Documented calibration and approximate millisecond granularity constrain interpretation.","useCase":"Controlled-rate HTTP latency benchmarking","platforms":["epoll/kqueue-based systems"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://github.com/giltene/wrk2/blob/master/README.md","locator":"Constant throughput, planned-time latency and calibration limits","retrievedAt":"2026-10-07T11:21:26Z","kind":"vendor"}]}],"alternatives":[],"slug":"wrk2","draftAlternatives":[{"targetSlug":"wrk","status":"limited","detail":"Can replace controlled-rate benchmark workflows with planned-time latency accounting; measurement semantics and calibration differ.","useCase":"Controlled-rate HTTP latency benchmarking","platforms":["epoll/kqueue-based systems"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://github.com/giltene/wrk2/blob/master/README.md","locator":"Constant throughput, planned-time latency and calibration limits","retrievedAt":"2026-10-07T11:21:26Z","kind":"vendor"},{"url":"https://github.com/wg/wrk/blob/master/README.md","locator":"Thread/connection model and scripting overhead","retrievedAt":"2026-10-07T11:20:49Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/giltene/wrk2/blob/master/README.md","locator":"Constant throughput, planned-time latency and calibration limits","retrievedAt":"2026-10-07T11:21:26Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/giltene/wrk2/blob/master/LICENSE","locator":"Apache License 2.0","retrievedAt":"2026-10-07T11:21:10Z","id":"wrk2-license","title":"wrk2 license","kind":"vendor"},{"url":"https://github.com/giltene/wrk2/blob/master/README.md","locator":"Constant throughput, planned-time latency and calibration limits","retrievedAt":"2026-10-07T11:21:26Z","id":"wrk2-readme","title":"wrk2 documentation","kind":"vendor"},{"url":"https://github.com/wg/wrk/blob/master/README.md","locator":"Thread/connection model and scripting overhead","retrievedAt":"2026-10-07T11:20:49Z","id":"wrk-readme","title":"wrk documentation","kind":"vendor"},{"url":"https://github.com/wg/wrk/blob/master/SCRIPTING","locator":"Independent thread environments, request callbacks and errors","retrievedAt":"2026-10-07T11:20:59Z","id":"wrk-scripting","title":"wrk Lua scripting API","kind":"vendor"}],"overviewCitations":["wrk2-readme"],"licenseCitations":["wrk2-license"],"sections":[{"id":"load","heading":"Planned throughput","paragraphs":[{"id":"load-detail","content":[{"text":"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."}],"citations":["wrk2-readme"]}]},{"id":"histograms","heading":"Statistics and retained scripting API","paragraphs":[{"id":"histograms-detail","content":[{"text":"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."}],"citations":["wrk2-readme"]}]},{"id":"limits","heading":"Calibration, precision and status","paragraphs":[{"id":"limits-detail","content":[{"text":"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."}],"citations":["wrk2-readme","wrk2-license"]}]},{"id":"fit","heading":"Substitution scope","paragraphs":[{"id":"fit-detail","content":[{"text":"wrk2 can substitute for "},{"text":"wrk","targetSlug":"wrk"},{"text":" 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."}],"citations":["wrk2-readme","wrk-readme","wrk-scripting"]}]}]},"id":"Q78","revision":62,"updatedAt":"2026-10-08T23:44:18Z","sourceUrl":"https://substitutefor.net/entities/Q78?revision=62"}}