oha is a Rust-based HTTP load generator with a live terminal interface and machine-readable output. Inspired by hey, it supports request-count and duration-based runs while exposing additional controls for pacing, protocol behavior and latency reporting.[2]
Rate and concurrency
The QPS option sets an overall rate, unlike hey's per-worker setting. HTTP/2 can combine a connection count with parallel streams, and latency correction is available only when a QPS target is set. These controls describe different aspects of the workload; increasing connections or stream parallelism does not automatically preserve the original arrival schedule.[2]
Protocol-specific behavior
The documentation distinguishes duration handling by protocol: HTTP/1 requests still in progress are aborted at the deadline unless waiting is requested, while HTTP/2 waits for ongoing requests and ignores that waiting flag. Redirects and disabling keep-alive also have HTTP/2 restrictions. HTTP/3 support is marked experimental, requires a build feature and currently depends on rustls. A feature appearing in the command help therefore does not imply identical behavior in every build or protocol.[2]
Interpreting exported measurements
The project supplies a JSON output schema for automated analysis. Its summary duration fields and latency percentiles use seconds, while the metrics.latency_ms object uses milliseconds. Unit-aware parsing is necessary when combining sections or comparing another tool's output. The schema also describes success-rate calculations with deadline exclusions, so a high ratio should be interpreted alongside the full request and error information.[3]
Interface, license and execution cost
oha uses the MIT license and documents Linux, Windows and macOS distribution. The live terminal view can be disabled, and the project describes a faster execution path when both live display and rate or burst controls are absent. Removing those controls changes the workload or observation overhead, so that mode should not be presented as a universally equivalent optimization for every benchmark.[1][2]
Substitution scope
oha can substitute for hey for focused HTTP endpoint testing when live feedback or structured JSON is useful. The similar command style is not sufficient for a drop-in migration: rate scope, duration completion and protocol defaults need to be aligned. Existing CSV or summary-processing scripts may also require changes. No independent throughput comparison was run, and the assessment concerns workflow coverage rather than a speed ranking.[2][3][4]
Capabilities & limitations
Live and structured results
supported
Terminal UI and documented JSON schema support interactive and automated use.[2][3]
Interactive and automated HTTP endpoint benchmarking · Windows, macOS, Linux, Docker · Version, plan and platform requirements apply