OSDN Git Service

Regular updates
[twpd/master.git] / siege.md
1 ---
2 title: Siege
3 category: Others
4 layout: 2017/sheet
5 intro: |
6   [Siege](https://www.joedog.org/siege-home/) is an HTTP and HTTPS load testing tool.
7 ---
8
9 ### Basic usage
10
11 ```sh
12 siege -b -c=10 -t=5m "http://..."
13 ```
14
15 ### Options
16
17 #### Repetitions
18
19 ```
20 -c, --concurrent=N
21 -t, --time=MINSm
22 -r, --reps=N
23 ```
24
25 #### Modes
26
27 ```
28 -i, --internet       Hit URLs randomly
29 -b, --benchmark      No delay between requests
30 ```
31
32 #### Configuration
33
34 ```
35 -f, --file=FILE      load urls.txt
36 -R, --rc=FILE        load siegerc
37 ```
38
39 #### Headers
40
41 ```
42 -H, --header="Cookie: foo=bar"
43 -A, --user-agent="Mozilla"
44 -T, --content-type="text/html"
45 ```
46
47 ### References
48
49 Also see: [siegerc](https://gist.github.com/stansmet/3067988)