sudo apt install wrk
git clone https://github.com/wg/wrk.git
cd wrk
make
./wrk -v
In case you do not have necessary tools, you may need to install:
apt install make
apt install unzip
apt install -y gcc
By default 2 threads and 10 connections
wrk http://SERVER_IP:PORT
Using 100 threads and 100 connections
wrk -t100 -c100 http://SERVER_IP:PORT
Using 500 threads and 500 connections for 1000 seconds
wrk -t500 -c500 -d1000 http://SERVER_IP:PORT