oha (おはよう) is a compact tool for generating load on web applications while providing a real-time TUI interface. Inspired by rakyll/hey and built with Rust, oha delivers powerful performance, utilizing tokio and ratatui for an engaging user experience. Perfect for testing and benchmarking web services.
The oha (おはよう) project is a lightweight HTTP load generator inspired by rakyll/hey. Built in Rust and leveraging the power of tokio, this tool presents an engaging TUI (Text User Interface) that visualizes real-time load tests.
oha -n 200 -c 50 https://example.com
To run oha, simply use the following syntax:
Usage: oha [OPTIONS] <URL>
Users can specify several options, such as:
-n <N_REQUESTS> for the number of requests.-c <N_CONNECTIONS> to define concurrent connections.-z <DURATION> to set the testing duration while options like --latency-correction help to avoid issues stemming from coordinate omission.For increased performance, the tool can operate without the TUI by using the --no-tui flag, minimizing overhead and optimizing load generation.
Enhance testing realism by generating random URLs or reading multiple target URLs from a file:
aha --urls-from-file urls.txt
This allows for comprehensive testing across different endpoints, reflecting a true usage scenario.
Contributions are welcome in various areas such as improving the TUI design or writing additional tests. Join the community in enhancing this tool for everyone’s benefit.
No comments yet.
Sign in to be the first to comment.