Pressure test Tool Siege-unit test/pressure measuring tool

Source: Internet
Author: User

Siege is a web-based stress testing tool for Web systems that supports multiple links, get and post requests, and can carry out multiple concurrent requests to the Web system for stress testing. Installation Siege #wgethttp://www.joedog.org/pub/siege/siege-latest.tar.gz #tar-xzvf siege-latest.tar.gz #./ Configure Make #make Install Siege command Common parameters

-C 200 Specify concurrency number 200
-R 5 Specify the number of tests 5
-F urls.txt file for URL development
-I Internet system, send URL randomly
-B request without waiting delay=0
-T 5 continuous test for 5 minutes
#-R and-T generally use common siege command examples

# 200 concurrent requests for http://www.google.com send 100 siege-c 200-r http: www. google.com

# List all URLs in Urls.txt siege-c 200-r 100-f urls.txt

# randomly selected Urls.txt list all URLs in siege-c 200-r 100-f urls.txt-i

# delay=0, more accurate stress testing, not functional test siege-c 200-r 100-f urls.txt-i-B

# Specifies the HTTP request header document type Siege-h "Content-type:application/json"-C 200-r 100-f urls.txt-i-B Siege Output description

Transactions: Total number of tests
Availability: Percentage of successful times
Elapsed time: How many seconds in total
Data transferred: Total data transfer
Response time: Wait until the response is time-consuming
Transaction Rate: Average number of requests processed per second
Throughput: Throughput Rate
Concurrency: Maximum concurrency
Successful transactions: number of Successful requests
Failed transactions: Number of failed requests siege some of the summaries used

1, when sending a POST request, the URL format is: Http://www.xxxx.com/POST p1=v1&p2=v2
2, if the URL contains spaces and Chinese, first URL encoding, otherwise siege sent the request URL is not accurate

Add to

Siege-c can view the relevant configuration parameters, can be modified by itself, such as whether to display log, timeout time

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.