# oha

Rust HTTP load generator with live terminal feedback and structured benchmark output\.

ID: Q675 · Revision: 723

Type: software · License: MIT[^oha-license] · Status: active

Website: https://github.com/hatoo/oha



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\.[^oha-readme]

## 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\.[^oha-readme]

## 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\.[^oha-readme]

## 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\.[^oha-schema]

## 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\.[^oha-license][^oha-readme]

## Substitution scope

oha can substitute for [hey](/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\.[^oha-readme][^oha-schema][^hey-readme]

## Capabilities and substitutions

### Live and structured results — supported

Terminal UI and documented JSON schema support interactive and automated use\.[^oha-readme][^oha-schema]

Use case: Interactive and automated HTTP endpoint benchmarking · Platforms: Windows, macOS, Linux, Docker · Region: Version, plan and platform requirements apply

### Global request pacing — supported

QPS applies overall; latency correction requires a configured QPS\.[^oha-readme]

Use case: Interactive and automated HTTP endpoint benchmarking · Platforms: Windows, macOS, Linux, Docker · Region: Version, plan and platform requirements apply

### Uniform protocol behavior — limited

Deadline, redirects, keep\-alive and experimental HTTP/3 have documented differences\.[^oha-readme]

Use case: Interactive and automated HTTP endpoint benchmarking · Platforms: Windows, macOS, Linux, Docker · Region: Version, plan and platform requirements apply

### [Substitute for hey](/hey) — limited

Can replace focused endpoint benchmarks with live or JSON reporting; rate scope, protocol behavior and parsers need migration\.[^oha-readme][^hey-readme]

Use case: Interactive and automated HTTP endpoint benchmarking · Platforms: Windows, macOS, Linux, Docker · Region: Version, plan and platform requirements apply

## References

[^oha-license]: [oha license](<https://github.com/hatoo/oha/blob/master/LICENSE>) — MIT license (vendor; retrieved 2026-10-07T11:21:10Z)

[^oha-readme]: [oha documentation](<https://github.com/hatoo/oha/blob/master/README.md>) — Global QPS, protocol differences, terminal UI and output (vendor; retrieved 2026-10-07T11:21:10Z)

[^oha-schema]: [oha JSON output schema](<https://github.com/hatoo/oha/blob/master/schema.json>) — Summary seconds versus metrics\.latency\_ms units (vendor; retrieved 2026-10-07T11:21:35Z)

[^hey-readme]: [hey documentation](<https://github.com/rakyll/hey/blob/master/README.md>) — Worker\-level QPS, duration/request count, HTTP2 and platforms (vendor; retrieved 2026-10-07T11:20:59Z)

Source revision: https://substitutefor.net/entities/Q675?revision=723
