Install
apt-get install siege
Run
siege -b -c 1000 -t 30s example.com
In above command:
- -c stands for concurrency. We are using 1000 concurrent connections.
- -t specifies time duration. We are using 30 seconds
- -b is to run siege in benchmark mode. Without it, siege inserts delay between 2 requests.
Sample Output
Lifting the server siege... done.
Transactions: 8036 hits
Availability: 98.66 %
Elapsed time: 30.62 secs
Data transferred: 148.16 MB
Response time: 2.34 secs
Transaction rate: 262.44 trans/sec
Throughput: 4.84 MB/sec
Concurrency: 612.92
Successful transactions: 8036
Failed transactions: 109
Longest transaction: 23.83
Shortest transaction: 0.01
FILE: /var/siege.log
You can disable this annoying message by editing
the .siegerc file in your home directory; change
the directive 'show-logfile' to false.
Siege Log
Can be found in /var/siege.log