Use of the Web stress testing tool Siege in Linux
In Linux, the most common Web stress testing tool is apache AB. Of course there are many options to choose from. Webshells, http_load. It depends on your hobbies. However, recently, siege is the best choice.
Siege official website address http://www.joedog.org/
Latest Version 3.0.8, http://download.joedog.org/siege/
1. Installation
Wget http://download.joedog.org/siege/siege-3.0.8.tar.gz
Tar xzvf siege-3.0.8.tar.gz
Cd siege-3.0.8
./Configure
Make & make install
2. Prepare the url or url list file for testing.
3. Run
Siege www.bkjia.com/test.php-B-r10-c400
Parameter description:
-B -- benchmark BENCHMARK: no delays between requests.
There is no latency between each request, and there is also a-d parameter plus latency, similar to the thinking time of some professional testing tools
-R -- reps = num reps, number of times to run the test.
Number of times each request is executed
-C -- concurrent = num concurrent users, default is 10
Concurrent users
-F -- file = FILE, select a specific urls file.
4. Execution result
Transactions: 3915 hits
Availability: 97.88%
Elapsed time: 43.73 secs
Data transferred: 706.12 MB
Response time: 2.90 secs
Transaction rate: 89.53 trans/sec
Throughput: 16.15 MB/sec
Concurrency: 259.48
Successful transactions: 3915
Failed transactions: 85
Longest transaction: 37.70
Shortest transaction: 0.05
Siege details: click here
Siege: click here
This article permanently updates the link address: