Generate HTTP load and plot the results in real-time
A load testing tool capable of performing real-time analysis, inspired by vegeta and jplot.
ali comes with an embedded terminal-based UI where you can plot the metrics in real-time, so lets you perform real-time analysis on the terminal.
Binary releases are available through here.
Via Homebrew
brew install nakabonne/ali/aliVia MacPorts
sudo port selfupdate
sudo port install aliVia APT
wget https://github.com/nakabonne/ali/releases/download/v0.7.3/ali_0.7.3_linux_amd64.deb
apt install ./ali_0.7.3_linux_amd64.debVia RPM
rpm -ivh https://github.com/nakabonne/ali/releases/download/v0.7.3/ali_0.7.3_linux_amd64.rpmVia Pacman
pacman -S aliVia APK
After enabling the community repo:
apk add aliVia Go
Note that you may have a problem because it downloads an untagged binary.
go install github.com/nakabonne/ali@latestVia Docker
docker run --rm -it nakabonne/ali aliali http://host.xzReplace http://host.xz with the target you want to issue the requests to.
Press Enter when the UI appears, then the attack will be launched with default options (rate=50, duration=10s).
…Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
Examples
For basic usage:
ali --rate=500 --duration=5m http://host.xzFor an infinite attack:
ali --duration=0 http://host.xzFor an attack with the POST method:
ali --body-file=/path/to/foo.json --method=POST http://host.xzPress l (or h) to switch the displayed chart. On all charts, you can click and drag to select a region to zoom into.
Latency
The X-axis represents the request counts and the Y-axis represents latencies in milliseconds.
Percentiles
You can see how the 50th, 90th, 95th, and 99th percentiles are changing.
Bytes
TBA
Histogram
TBA
This will help you during long tests.
With the help of mum4k/termdash can be used intuitively.
You can persist load test results for downstream processing.
ali --export-to ./results/See here more details.
This project would not have been possible without the effort of many individuals and projects but especially vegeta for the inspiration and powerful API.
Besides, ali is built with termdash (as well as termbox-go) for the rendering of all those fancy graphs on the terminal.
They clearly stimulated an incentive to creation. A big "thank you!" goes out to all those who helped.
No open issues yet, or sync has not completed.