talira

HTTP load generator with a realtime terminal UI, inspired by hey

open sourceMITself-hostablefree

oha (おはよう) is a small command-line HTTP load generator written in Rust on tokio, inspired by rakyll/hey, that shows a live terminal UI (built with ratatui) of throughput, latency and status codes while it runs. You set a number of requests or a duration, the concurrency and an optional overall queries-per-second limit or bursts, and it reports latency percentiles and histograms, with optional correction for coordinated omission. It speaks HTTP/1.1 and HTTP/2, with experimental HTTP/3, and can send custom methods, headers, bodies and forms, sign requests with AWS SigV4, go through proxies, hit Unix sockets, generate random URLs from a regex or read them from a file, and write results to SQLite.

Problems it solves

  • find out how many requests per second my web server can handle before latency climbs
  • hammer an API endpoint with concurrent requests and watch latency live in the terminal
  • a quick load test from the command line without writing a test script
  • measure p99 latency of my HTTP service under a fixed request rate
  • benchmark an HTTP/2 server with many parallel streams per connection
  • load test a service listening on a Unix socket
  • replace ab or hey with something that shows progress while it runs
  • save every request's timing from a load test to a database for later analysis

Features

  • realtime TUI with throughput, latency and status codes
  • fixed request count or duration, concurrency and HTTP/2 parallelism
  • rate limiting by overall QPS and burst mode
  • latency correction for coordinated omission
  • HTTP/1.1, HTTP/2 and experimental HTTP/3
  • custom methods, headers, bodies, multipart forms and basic auth
  • AWS SigV4 request signing
  • proxies, client certificates and Unix sockets
  • random URLs from a regex, or URLs read from a file
  • write succeeded requests to a SQLite database
View 2 more
  • JSON output and --no-tui mode
  • official Docker image on ghcr.io

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what oha does.

  1. Grafana k6 Like unit testing, for performance
  2. Vegeta HTTP load testing tool and library built to drill HTTP services with a constant request rate
  3. Gatling Modern load testing as code
  4. Apache JMeter A 100% pure Java application designed to load test functional behavior and measure performance
  5. Locust An open source load testing tool: define user behaviour in plain Python and swarm your system with millions of simultaneous users
  6. Artillery Full-stack performance and reliability testing: scalable API and Playwright load testing

Compare oha with the top 3