[root@Test ~]# siege -t 1m -c 1 http://www.sohu.com
参数说明:
-t 1分钟
-c 4 并发4个用户
-r 2 重复循环2次
-f 接网站地址文件 任务列表:URL列表 SourceByrd's Weblog-https://note.t4x.org/basic/website-stress-test-siege/
0 1 2 3 4 5 6 7 8 9 10 11 12 |
Lifting the server siege... done. Transactions: 232 hits #完成232次处理 Availability: 100.00 % #成功率100% Elapsed time: 59.36 secs #总共用时1分钟 Data transferred: 2.14 MB #共数据传输:2.14m Response time: 0.52 secs #相应用时0.52秒:显示网络连接的速度 Transaction rate: 3.91 trans/sec #平均每秒完成3,.91次处理:表示服务器后台处理的速度 Throughput: 0.04 MB/sec #平均每秒传送数据:0.04m Concurrency: 2.04 #最高并发 Successful transactions: 232 #成功处理次数 Failed transactions: 0 #失败次数 Longest transaction: 0.92 #每次传输所花最长时间 Shortest transaction: 0.28 #每次传输所花最短时间 |
参数:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
[root@Test ~]# siege --help SIEGE 3.1.3 Usage: siege [options] siege [options] URL siege -g URL Options: -V, --version VERSION, prints the version number. -h, --help HELP, prints this section. -C, --config CONFIGURATION, show the current config. -v, --verbose VERBOSE, prints notification to screen. -q, --quiet QUIET turns verbose off and suppresses output. -g, --get GET, pull down HTTP headers and display the transaction. Great for application debugging. -c, --concurrent=NUM CONCURRENT users, default is 10 -i, --internet INTERNET user simulation, hits URLs randomly. -b, --benchmark BENCHMARK: no delays between requests. -t, --time=NUMm TIMED testing where "m" is modifier S, M, or H ex: --time=1H, one hour test. -r, --reps=NUM REPS, number of times to run the test. -f, --file=FILE FILE, select a specific URLS FILE. -R, --rc=FILE RC, specify an siegerc file -l, --log[=FILE] LOG to FILE. If FILE is not specified, the default is used: PREFIX/var/siege.log -m, --mark="text" MARK, mark the log file with a string. -d, --delay=NUM Time DELAY, random delay before each requst between .001 and NUM. (NOT COUNTED IN STATS) -H, --header="text" Add a header to request (can be many) -A, --user-agent="text" Sets User-Agent in request -T, --content-type="text" Sets Content-Type in request Copyright (C) 2015 by Jeffrey Fulmer, et al. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!