{"schemaVersion":"1.0","record":{"label":"oha","description":"Rust HTTP load generator with live terminal feedback and structured benchmark output.","aliases":[],"kind":"software","website":"https://github.com/hatoo/oha","overview":"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.","license":"MIT","lifecycle":"active","example":false,"features":[{"name":"Live and structured results","status":"supported","detail":"Terminal UI and documented JSON schema support interactive and automated use.","useCase":"Interactive and automated HTTP endpoint benchmarking","platforms":["Windows","macOS","Linux","Docker"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://github.com/hatoo/oha/blob/master/README.md","locator":"Global QPS, protocol differences, terminal UI and output","retrievedAt":"2026-10-07T11:21:10Z","kind":"vendor"},{"url":"https://github.com/hatoo/oha/blob/master/schema.json","locator":"Summary seconds versus metrics.latency_ms units","retrievedAt":"2026-10-07T11:21:35Z","kind":"vendor"}]},{"name":"Global request pacing","status":"supported","detail":"QPS applies overall; latency correction requires a configured QPS.","useCase":"Interactive and automated HTTP endpoint benchmarking","platforms":["Windows","macOS","Linux","Docker"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://github.com/hatoo/oha/blob/master/README.md","locator":"Global QPS, protocol differences, terminal UI and output","retrievedAt":"2026-10-07T11:21:10Z","kind":"vendor"}]},{"name":"Uniform protocol behavior","status":"limited","detail":"Deadline, redirects, keep-alive and experimental HTTP/3 have documented differences.","useCase":"Interactive and automated HTTP endpoint benchmarking","platforms":["Windows","macOS","Linux","Docker"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://github.com/hatoo/oha/blob/master/README.md","locator":"Global QPS, protocol differences, terminal UI and output","retrievedAt":"2026-10-07T11:21:10Z","kind":"vendor"}]}],"alternatives":[],"slug":"oha","draftAlternatives":[{"targetSlug":"hey","status":"limited","detail":"Can replace focused endpoint benchmarks with live or JSON reporting; rate scope, protocol behavior and parsers need migration.","useCase":"Interactive and automated HTTP endpoint benchmarking","platforms":["Windows","macOS","Linux","Docker"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://github.com/hatoo/oha/blob/master/README.md","locator":"Global QPS, protocol differences, terminal UI and output","retrievedAt":"2026-10-07T11:21:10Z","kind":"vendor"},{"url":"https://github.com/rakyll/hey/blob/master/README.md","locator":"Worker-level QPS, duration/request count, HTTP2 and platforms","retrievedAt":"2026-10-07T11:20:59Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/hatoo/oha/blob/master/README.md","locator":"Global QPS, protocol differences, terminal UI and output","retrievedAt":"2026-10-07T11:21:10Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/hatoo/oha/blob/master/LICENSE","locator":"MIT license","retrievedAt":"2026-10-07T11:21:10Z","id":"oha-license","title":"oha license","kind":"vendor"},{"url":"https://github.com/hatoo/oha/blob/master/README.md","locator":"Global QPS, protocol differences, terminal UI and output","retrievedAt":"2026-10-07T11:21:10Z","id":"oha-readme","title":"oha documentation","kind":"vendor"},{"url":"https://github.com/hatoo/oha/blob/master/schema.json","locator":"Summary seconds versus metrics.latency_ms units","retrievedAt":"2026-10-07T11:21:35Z","id":"oha-schema","title":"oha JSON output schema","kind":"vendor"},{"url":"https://github.com/rakyll/hey/blob/master/README.md","locator":"Worker-level QPS, duration/request count, HTTP2 and platforms","retrievedAt":"2026-10-07T11:20:59Z","id":"hey-readme","title":"hey documentation","kind":"vendor"}],"overviewCitations":["oha-readme"],"licenseCitations":["oha-license"],"sections":[{"id":"pacing","heading":"Rate and concurrency","paragraphs":[{"id":"pacing-detail","content":[{"text":"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."}],"citations":["oha-readme"]}]},{"id":"protocols","heading":"Protocol-specific behavior","paragraphs":[{"id":"protocols-detail","content":[{"text":"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."}],"citations":["oha-readme"]}]},{"id":"output","heading":"Interpreting exported measurements","paragraphs":[{"id":"output-detail","content":[{"text":"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."}],"citations":["oha-schema"]}]},{"id":"distribution","heading":"Interface, license and execution cost","paragraphs":[{"id":"distribution-detail","content":[{"text":"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."}],"citations":["oha-license","oha-readme"]}]},{"id":"fit","heading":"Substitution scope","paragraphs":[{"id":"fit-detail","content":[{"text":"oha can substitute for "},{"text":"hey","targetSlug":"hey"},{"text":" 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."}],"citations":["oha-readme","oha-schema","hey-readme"]}]}]},"id":"Q675","revision":723,"updatedAt":"2026-10-13T02:31:10Z","sourceUrl":"https://substitutefor.net/entities/Q675?revision=723"}}