Install Siege on Ubuntu 20.04

Siege is an open-source HTTP load testing and benchmarking tool. This tool enables to test web application by sending specified number of user requests simultaneously.

This tutorial explains how to install Siege on Ubuntu 20.04.

Install Siege

Update the package lists:

sudo apt update

Execute the following command to install Siege:

sudo apt install -y siege

When installation is finished, we can check Siege version as follows:

siege --version

Testing Siege

We can use siege command in many ways. The following command performs a load testing for specified website URL:

siege http://192.168.0.48 -t 10S -c 50

Command sends 50 user requests simultaneously for 10 seconds to the server. Example of test results:

** Preparing 50 concurrent users for battle.
The server is now under siege...
Lifting the server siege...
Transactions:                  35527 hits
Availability:                 100.00 %
Elapsed time:                   9.96 secs
Data transferred:             148.97 MB
Response time:                  0.01 secs
Transaction rate:            3566.97 trans/sec
Throughput:                    14.96 MB/sec
Concurrency:                   49.36
Successful transactions:       35527
Failed transactions:               0
Longest transaction:            0.26
Shortest transaction:           0.00

Uninstall Siege

If you want to completely remove Siege, execute the following command:

sudo apt purge --autoremove -y siege

You can also remove Siege configuration directory:

rm -rf ~/.siege

Leave a Comment

Your email address will not be published.