Web Performance Stress test Tool--siege

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.