#cli #performance #http #load-testing

app oha

Ohayou(おはよう), HTTP load generator, inspired by rakyll/hey with tui animation

22 releases

✓ Uses Rust 2018 edition

0.3.1 May 16, 2020
0.3.0 May 6, 2020
0.2.7 May 5, 2020
0.2.4 Apr 28, 2020
0.1.11 Mar 24, 2020

#5 in Profiling

Download history 70/week @ 2020-03-05 116/week @ 2020-03-12 266/week @ 2020-03-19 92/week @ 2020-03-26 27/week @ 2020-04-02 63/week @ 2020-04-09 72/week @ 2020-04-16 34/week @ 2020-04-23 64/week @ 2020-04-30 24/week @ 2020-05-07 33/week @ 2020-05-14 24/week @ 2020-05-21

277 downloads per month

MIT license

1.5K SLoC

oha (おはよう)

GitHub Actions Crates.io AUR Homebrew

oha is a tiny program that sends some load to a web application and show realtime tui inspired by rakyll/hey.

This program is written in Rust and powered by tokio and beautiful tui by tui-rs.



This program is built on stable Rust.

cargo install oha

On Arch Linux

yay -S oha

On macOS (Homebrew)

brew install oha


  • Linux - Tested on Ubuntu 18.04 gnome-terminal
  • Windows 10 - Tested on Windows Powershell
  • MacOS - Tested on iTerm2


-q option works different from rakyll/hey. It's set overall query per second instead of for each workers.

oha 0.3.1
hatoo <hato2000@gmail.com>
Ohayou(おはよう), HTTP load generator, inspired by rakyll/hey with tui animation.

    oha [FLAGS] [OPTIONS] <url>

        --no-tui                 No realtime tui
        --disable-compression    Disable compression.
        --disable-keepalive      Disable keep-alive, prevents re-use of TCP connections between different HTTP requests.
        --ipv6                   Lookup only ipv6.
        --ipv4                   Lookup only ipv4.
        --insecure               Accept invalid certs.
    -h, --help                   Prints help information
    -V, --version                Prints version information

    -n <n-requests>                      Number of requests to run. [default: 200]
    -c <n-workers>                       Number of workers to run concurrently. You may should increase limit to number
                                         of open files for larger `-c`. [default: 50]
    -z <duration>                        Duration of application to send requests. If duration is specified, n is
                                         Examples: -z 10s -z 3m.
    -q <query-per-second>                Rate limit for all, in queries per second (QPS)
        --fps <fps>                      Frame per second for tui. [default: 16]
    -m, --method <method>                HTTP method [default: GET]
    -H <headers>...                      Custom HTTP header. Examples: -H "foo: bar"
    -t <timeout>                         Timeout for each request. Default to infinite.
    -A <accept-header>                   HTTP Accept Header.
    -d <body-string>                     HTTP request body.
    -D <body-path>                       HTTP request body from file.
    -T <content-type>                    Content-Type.
    -a <basic-auth>                      Basic authentication, username:password
        --http-version <http-version>    HTTP version. Available values 0.9, 1.0, 1.1, 2.
        --host <host>                    HTTP Host header

    <url>    Target URL.


Feel free to help us!

Here are some issues to improving.

  • Write tests
  • Improve tui design.
    • Show more information?
    • There are no color in realtime tui now. I want help from someone who has some color sense.
  • Improve speed
    • I'm new to tokio. I think there are some space to optimize query scheduling.
  • Output like CSV or JSON format.
  • Improve histogram in summary output
    • It uses very simple algorithm now.


~272K SLoC