Recently need to istio in the BookInfo analysis, always hand to refresh too slow, found an automatic point tool--siege
Siege is an open-source stress testing tool designed to evaluate the affordability of Web applications under pressure. Multiple user concurrent access to a Web site can be configured to record the corresponding time of each user's request process and repeat under a certain number of concurrent accesses.
Siege official website: http://www.joedog.org/
Installing siege
apt-get Install siege
Siege Command Common parameters
$ // Specify the number of concurrent 5 // Specify number of tests 5-F //urls.txt set URL file- i //Internet system, random send URL -B / / Request no wait delay=05 // continuous test for 5 minutes // - R and-T are generally not used concurrently
Urls.txt is located under the/etc/siege/folder, and its format
[Protocol:///]host.domain.com[:p Ort][path/to/file]
If the URL contains spaces and Chinese, the URL is encoded first, otherwise the request URL sent by siege is inaccurate
Examples of commonly used siege commands
//200 concurrent to http://www.google.com Send request 100 timesSiege-c $-R -http//www.google.com//Test all URLs in the Urls.txtSiege-c $-R --F urls.txt//randomly select the URLs listed in the Urls.txt to testSiege-c $-R --F Urls.txt-I//delay=0, more accurate stress testing, rather than functional testingSiege-c $-R --F Urls.txt-i-b//Specify the HTTP request header document typeSiege-h"Content-type:application/json"-C $-R --F urls.txt-i-B
Siege output Result Description
* * SIEGE2.72* * PreparingTenConcurrent users forbattle. The server isNow under siege. Done. Transactions: -Hits//completed Department of ServicesAvailability:100.00%//success rate of completionElapsed Time:0.08secs//Total time usedData Transferred:0.94MB//total size of data in responseResponse Time:0.00secs//Show the speed of the network connectionTransaction Rate:3750.00Trans/sec//average number of transactions completed per secondThroughput:11.79Mb/sec//average amount of data transmitted per secondConcurrency:8.50 //actual maximum number of concurrent linksSuccessful transactions: -//number of successful processesFailed transactions:0//number of failed processesLongest transaction:0.01//maximum time for transaction processingShortest transaction:0.00//minimum transaction processing time
In addition, you can see the siege log
VI/var/log/siege.log
Web Performance Stress test Tool--siege