Get the App
SLTechnology News&Howtos  ›  Servers  › 

Introduction of siege stress testing tool

Shulou Source: shulou.com Published: 2022-06-03 05:38:21 10月02日 Update

Siege is a HTTP / HTTPS regression and benchmarking tool. It is a very convenient stress testing tool.

Official website: http://www.joedog.org/

Download URL: http://www.joedog.org/pub/siege/

This document uses the latest version of siege-3.0.1.tar.gz

Source code installation:

Wget http://download.joedog.org/siege/siege-3.0.7.tar.gz

Tar xvzf siege-3.0.1.tar.gz

Cd siege-3.0.1

. / configure

Make

Make install

Siege-help

-C,-- config: view the current configuration information of siege

-V,-- version: copyright description information

-c,-- concurrent=NUM: number of users started (accessed) in parallel. Default is 10.

-t,-- time=NUMm: stress test time. For example,-T5 means the duration is 5 minutes.

-b,-- benchmark: benchmark where there is no delay between requests.

-g,-- request in get get mode

-d,-- delay=NUM time delay, delay time between each request

-I,-- internet simulates the user and randomly clicks the URL.

-r,-- reps=NUM: the number of requests per connection, which is somewhat similar to t, so setting this value eliminates the need to set t, and vice versa.

-f,-- file=FILE: corresponds to a file with a URL link for each behavior in this file, such as:

-m,-- mark= "text" string identification marked in the log

-H,-- header= "text" string identification added in Header

-A,-- user-agent= "text" string identification added in user-agent

Use the sample:

1.

Siege-u www.IP.com-D1-R10-c 25

2.GET mode pressure test

Siege-g http://www.IP.com

3. Using random URL, URL is pre-written in the url.txt file.

Siege-f url.txt-c 50-T5-I-b

Tags: Test time character string file method identity delay pressure tool test tool between information benchmark user URL one line download URL and vice versa official Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Tech Info Linux Apple OPPO Reno