oha vs bombardier vs hey vs wrk2 in 2026: Which HTTP Benchmark Tool Should You Use?
Every performance argument eventually reaches the same moment: someone says “the new gateway handles 40,000 requests per second” and someone else asks “measured with what?” The answer determines whether that number means anything at all.
The four tools in this comparison — oha, bombardier, hey and wrk2 — are all one-binary HTTP load generators that will happily print a big requests-per-second figure. They disagree about almost everything else: how rate limiting is interpreted, whether latency is recorded correctly under saturation, whether you get a live terminal UI, and whether the project is still maintained. Pick the wrong one and you will confidently ship a regression.
TL;DR: Use oha for day-to-day benchmarking and demos — it has the best terminal UI, the most accurate rate-limited latency measurement, and active development. Use bombardier when you want a single Go binary with fast fasthttp throughput and clean latency percentiles. Use hey if you need its CSV output for scripting and per-worker rate semantics. Use wrk2 only when you specifically need constant-throughput measurement with corrected latency — and accept that it has not been updated since 2024.
The Contenders at a Glance
GitHub figures pulled at publish time.
| oha | bombardier | hey | wrk2 | |
|---|---|---|---|---|
| Language | Rust (tokio + ratatui) | Go (fasthttp, optional net/http) | Go | C (LuaJIT scripting) |
| GitHub stars | 10,810 | 6,860 | 20,817 | 4,645 |
| Last commit | 2026-12-03 | 2026-11-17 | 2026-01-10 | 2024-03-03 |
| Live terminal UI | Yes (ratatui, --no-tui to disable) | Progress bar only | No | No |
| Rate limit flag | -q — global QPS | --rate | -q — per worker | -R — constant rate |
| Latency correction | --latency-correction | No | No | Native (core design) |
| Latency distribution output | Yes | Yes | Yes | Yes (HdrHistogram) |
| Scriptable requests | Regex URLs, body files, multipart | Limited (headers, body) | Headers, body | Full Lua API |
| Official container | ghcr.io/hatoo/oha | No | No | Community only |
| Install | cargo, brew, pacman, winget | go install | Prebuilt binary, brew | Build from source |

Which Tool for Which Job?
| Job | Tool | Why |
|---|---|---|
| Quick sanity check of a local endpoint | oha | One command, live feedback, sane defaults (-n 200 -c 50) |
| Reproducible benchmark in CI | bombardier | Stable Go binary, machine-readable output, no TUI to disable |
| Constant-rate test to expose queueing | wrk2 or oha with -q | Both support fixed request rates; oha is actively maintained |
| Scripted, stateful request sequences | wrk2 | Lua scripting is the only real way to do this among these four |
| Exporting timings to a spreadsheet | hey | -o csv is built in |
| HTTP/2 or HTTP/3 testing | oha (--http2, experimental http3) | Widest protocol coverage of the four |
Comparing against published ab-style numbers | hey | It was written as an ApacheBench replacement |
Why “Requests Per Second” Is the Least Useful Number on the Screen
All four tools print throughput first, because that is what people screenshot. It is also the most misleading metric, for one structural reason: a load generator that saturates its own CPU stops being able to send requests at the rate it reports, and the requests it fails to send are never recorded as slow. This is coordinated omission, and it silently flatters every tool that sends as fast as it can.
The practical consequence: a closed-loop test (send N requests with C connections, as fast as they complete) tells you how the server behaves when the client is the bottleneck, not how it behaves when traffic arrives at a fixed rate. If your production traffic is rate-driven — and most request-serving systems are — a closed-loop benchmark can show a beautiful p99 while hiding a queue that would form at steady arrival rates.
That is why the rate-limit flag matters more than the throughput number. oha -q 2000 and wrk2 -R 2000 send at a fixed target rate and record the latency of every scheduled request, including ones that arrive late. hey -q does something different again: it applies the rate per worker, so -c 50 -q 10 means 500 requests per second, not 10. Getting that wrong is the single most common way people misconfigure these tools.
oha: The Best Default for Humans
oha is a Rust load generator built on tokio with a ratatui interface. It was explicitly inspired by hey, and it fixed the two things hey gets wrong: rate limiting is global (not per worker), and there is a --latency-correction flag for rate-limited runs.
Install it from any of the usual channels:
| |
The defaults are sensible enough for a first look — 200 requests across 50 connections:
| |
A rate-limited run that actually measures queueing, with latency correction enabled:
| |
Note the -q semantics: 2000 requests per second overall, regardless of connection count. That matches how you think about capacity. Note also -z 60s: duration-bounded runs are far more comparable across tools than fixed request counts, because they average over the same wall-clock window.
For protocol work, oha covers more ground than the others: --http2, VSOCK support via a build feature, an experimental HTTP/3 mode using the H3 library, AWS SigV4 signing, multipart forms, and regex-generated URLs:
| |
Containers are first-class. The official image works without installing anything:
| |
--network=host matters: benchmarking through Docker’s default NAT adds latency that has nothing to do with your server. And --no-tui is what you want in CI, where escape sequences in logs are noise.
The tradeoff is Rust build time if you compile from source, and a TUI that redraws at 16 fps by default — harmless interactively, pointless in a pipeline.
bombardier: The Go One-Binary Workhorse
bombardier is written in Go and defaults to fasthttp instead of net/http, which is why its raw throughput numbers are usually the highest of the four. That speed comes with a measurable caveat: fasthttp is not RFC-compliant in several corners, and the README itself notes that passing a Host header correctly is not possible with it.
Install:
| |

A closed-loop run with 125 connections and 10 million requests:
| |
A duration-bounded run with latency distribution:
| |
The output includes requests per second with standard deviation, mean latency, and a percentile table (50/75/90/99) when -l is passed. That percentile table is the reason to prefer bombardier over a naive ab run: averages hide the tail, and the tail is what users feel.
When you need RFC-compliant HTTP/2 or correct Host handling, switch the client:
| |
The practical guidance: use the fast path (fasthttp) to find the ceiling of a simple endpoint, then re-run with --http1/--http2 before you quote a number. The gap between the two clients on the same server is itself useful data — it tells you how much of your result is generator overhead.
hey: The ApacheBench Replacement With Better Output
hey has the most stars of the four (20,817) and the simplest mental model: N requests at C concurrency, print a summary. It was renamed from boom to avoid a binary-name clash, and it supports HTTP/2 endpoints.
| |
Its distinguishing feature is CSV output, which makes it the easiest of the four to wire into a script that stores results over time:
| |
Two gotchas. First, -q is per worker: -c 50 -q 10 yields roughly 500 requests per second. Second, the project has been quiet — last commit in early 2026 — so do not expect protocol-level features beyond HTTP/2 to appear.
hey is still a perfectly good tool for “is this endpoint fast or slow” questions. It is a poor tool for capacity planning, because closed-loop measurements at fixed concurrency tell you about saturation, not arrival-rate behavior.
wrk2: The Correct One Nobody Maintains
wrk2 is a fork of wrk that fixes wrk’s most famous flaw: latency recording under constant load. It generates requests at a fixed rate (-R) and records the latency of every request against its scheduled time, which is the correct way to measure what a user would experience when the system is queueing.
| |
The flags are terse and worth decoding: 2 threads, 100 connections, 30 seconds, 2000 requests per second target, with latency statistics. Output latency is reported through HdrHistogram, so the percentiles are trustworthy at the tail.
wrk2’s second strength is its Lua API, inherited from wrk. If you need to generate requests whose path or body depends on a response, or you need per-request scripting without a full framework, wrk2 is the only tool here that can do it:
| |
| |
The problem is maintenance: the repository’s last commit is from March 2024. That does not make the tool wrong — the measurement model is still the most rigorous of the four — but it means no HTTP/3, no active bug fixes, and build friction on newer toolchains. Treat wrk2 as a precision instrument you keep in the toolbox, not as your daily driver.
The Methodology That Makes Any of These Trustworthy
Tool choice is half the job. The other half is not fooling yourself:
Benchmark from a separate machine. Running the generator and the server on the same host means they compete for CPU and memory bandwidth. If you must co-locate, pin them to different cores and say so when you publish the number.
Warm up, then measure. JIT compilation, connection pool fills, page cache and TLS session caches all change the first 10–30 seconds. Run a short warm-up pass, discard it, then measure.
Use duration-bounded runs for comparison. -z 60s is more comparable than -n 100000, because a slow server simply completes fewer requests in the same window rather than making you normalize.
Always report percentiles, never just the mean. p50 tells you the typical case, p99 tells you what your angriest users see, and p999 tells you whether a queue is forming.
Disable keep-alive deliberately, once. oha --disable-keepalive or the equivalent strips connection reuse and shows you the cost of the TLS and TCP handshake. If that number collapses, your throughput is handshake-bound and more application tuning will not help.
Watch the generator’s CPU. If the load generator is at 100% CPU, you measured your laptop, not your server. Add connections in small steps until throughput stops rising — that plateau is the ceiling of the measurement rig, not necessarily of the server.
If your testing needs scenario scripting, ramp-up stages and pass/fail thresholds rather than raw request generation, the k6 vs Locust vs Gatling comparison covers the framework tier above these tools, and our SMTP performance testing guide applies the same discipline to mail servers. For micro-benchmarking code rather than HTTP endpoints, see the C++ microbenchmarking library comparison.
Pitfalls That Invalidate Results
Comparing numbers across tools. oha, bombardier, hey and wrk2 differ in default headers, connection reuse, client library and timing points. A 40,000 req/s result from bombardier and a 30,000 req/s result from hey on the same server is not a 33% regression — it is two different measurements. Pick one tool per project and keep it.
Misreading -q. In oha it is global; in hey it is per worker. Teams have shipped capacity plans off a 50× misreading of this flag.
Benchmarking GET /health and calling it capacity. A health endpoint touches no database, allocates nothing and returns a constant. It measures your framework’s routing overhead and nothing else.
Ignoring TLS. HTTPS benchmarks include handshake cost unless you reuse connections, and the cipher suite matters. Compare like with like: same TLS termination point, same keep-alive setting.
Running through a proxy or Docker NAT. Extra hops add latency and jitter that appear as server slowness. Use host networking for the generator, or measure from inside the same network namespace.
Trusting a single run. Run each configuration three times and report the spread. A 5% difference between two runs of the same config is noise; a 5% difference between two configs might also be noise.
FAQ
Is oha a drop-in replacement for hey?
Mostly, with one important difference: -q means global queries per second in oha and per-worker QPS in hey. Flag names like -n, -c, -z, -m and -H behave the same way, and oha adds a live TUI, protocol options and latency correction. Migration is usually a one-line change plus a rate-limit sanity check.
Which tool is most accurate for latency measurement?
wrk2, because constant-rate generation with scheduled-time latency recording is the only model here that handles coordinated omission natively. oha’s --latency-correction closed the gap for rate-limited runs and is the practical choice if you want an actively maintained tool. Any closed-loop run at maximum speed will under-report tail latency.
Why does bombardier report higher throughput than the others?
It defaults to fasthttp, a non-net/http client optimized for raw speed, and its generator overhead is low. Part of the reported advantage is genuinely faster request generation, not faster server response. Re-run with --http1 or --http2 to get a number closer to what an RFC-compliant client would see.
Can I test HTTP/2 endpoints with these tools?
Yes. oha supports --http2 and an experimental HTTP/3 mode, bombardier supports --http2 via its net/http client, and hey supports HTTP/2 endpoints. wrk2 predates practical HTTP/2 support in this lineage, so it is HTTP/1.1-only in practice — a real limitation if your production traffic is multiplexed.
How many connections should I use?
Start at 50 and increase in steps (50, 100, 200, 400) while watching both throughput and generator CPU. Stop when throughput plateaus or the generator saturates. The plateau point is your measurement ceiling; past it, higher -c only adds client-side queueing and makes latency numbers worse for reasons that have nothing to do with the server.
💰 想测试你的市场判断力?我用 Polymarket 做预测市场交易——这是全球最大的预测市场平台,从大选结果到技术监管时间线,什么都可以押注。和赌博不同,这是真正的信息市场:你懂的信息越多,胜率越高。我靠预测技术相关事件的走向已经赚了不少。用我的邀请链接注册:Polymarket.com