Web Open Source Test tool-siege

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Brief introduction

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 can request a random URL from the preset list of your choice. So siege can be used to simulate user request loads, while AB does not. But do not use siege to perform the highest performance benchmark calibration test, which is a lot more accurate AB.

Installation

curl http://download.joedog.org/siege/siege-latest.tar.gztar -zxvf siege-latest.tar.gzcd siege-2.72/./configuremakemake install
    • Various versions of siege

    • Siege Home

Use

Siege-b-C 100-t 10S http://domain.com/

Detailed parameters:

-C, or –config on-screen printing shows the current configuration, the configuration is included in his profile $home/.siegerc, you can edit the parameters inside, so that every time siege will follow it to run.

-V runtime to see detailed run information

-c N, or –concurrent=n simulation has n users at the same time access, n do not set too large, because the larger the siege consumes the local machine more resources

-i,–internet randomly accesses the URL list item in the Urls.txt to simulate real-world access (randomness) when the Urls.txt existence is valid

-D n,–delay=n hit delay between each URL, between 0-n

-R N,–reps=n repeatedly run the test n times and cannot exist with-t simultaneously

-T N,–time=n continuously running siege ' n ' seconds (e.g. 10S), minutes (10M), hours (10H)

-L run end, save statistics to log file siege. Log, typically located in/usr/local/var/
Siege. Log, can also be customized in. Siegerc

-R SIEGERC,–RC=SIEGERC Specifies to run with a specific siege configuration file, the default is $HOME/.SIEGERC

-F file,–file=file Specifies to run siege with a specific URLs file, default to Urls.txt, Etc/urls.txt in Siege installation directory

-U url,–url=url tests the specified URL and "siege" it, which ignores the setting of the URLs file

Description

    • transactions:1998 hits//How many times to finish

    • availability:99.90//Success rate

    • Elapsed time:6 3.04 secs//Total time

    • Data transferred:10.98 MB//Total data transfer xx. MB

    • Response time:3.46 secs \ Show speed of network connections

    • Transaction rate:31.69 trans/sec \ Average number of processes per second: indicates Server after

    • throughput:0.17 mb/sec \ Average transfer of data per second

    • concurrency:109.80 \ Actual maximum concurrency

    • Successful transactions:1998 \ Successful processing

    • Failed transactions:2 \ Failed processing

    • Longest transaction:28.09//maximum time spent per transfer

    • Shortest transaction:0.17//minimum time spent per transfer

Related Article

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.