Reprinted from: http://www.cxyteam.com/2015/12/17/siege%E5%8E%8B%E6%B5%8B%E5%B7%A5%E5%85%B7%E7%9A%84%E5%AE%89%E8%A3%85%E4% b8%8e%e4%bd%bf%e7%94%a8/
installation of Siege wget http://soft.vpser.net/test/siege/siege-2.67.tar.gz (one mirror station address in China)TAR-ZXVF siege-2.67. TAR.GZCD Siege-2.67./configure && make &&Make Install/usr/local/bin/siege--Help official website (when I download the connection time-out) Siege,github address siege use 50 users (each concurrency, note not the concurrency per second) repeated 100 times co-generated50 * 100 =5,000 Requests/usr/local/bin/siege-c 50-r hostname/path50 users repeat 100 times to send a get parameter/usr/local/bin/siege-c 50-r hostname/path?name=zhangsan50 users repeat 100 times to send post parameters (note the quotation marks)/usr/local/bin/siege-c 50-r "Hostname/path POST Name=zhangsan"50 users repeat 100 times to send post parameters (read from file)/usr/local/bin/siege-c 50-r "Hostname/path POST </tmp/post.xml"100 users repeat 100 times to send cookie parameters/usr/local/bin/siege-c 100-r 100-h "Cookie:key=value" "Hostname/path"To test multiple addresses Siege-C 200-r 10-F Url.txturl.txt's content is: hostname/path hostname/path hostname/pathsiege Command Result analysis transactions:100hits (complete 100 requests) Availability:100.00% (100%Success Rate _) Elapsed time:10.97secs (Total use time _) Data transferred:0.54MB (Total data transfer _) Response time:0.17secs (response time) Transaction rate:9.12 trans/sec (Average processing done per second) throughput:0.05 mb/sec (Average data transmitted per second) Concurrency:1.58(actual maximum number of concurrent) successful transactions:100(number of successful processes) Failed transactions:0(number of failed processes) longest transaction:3.09(maximum time spent per transfer) shortest transaction:0.03(minimum time spent per transfer) siege parameter Description usage:siege [options] siege [options] URL siege-g Urloptions:-V,--version (release information)-H,--Help (Info)-C,--Config (display configuration)-V,--verbose (runtime can see detailed operation information)-G,--Get (Display HTTP header information, user Debug)-C,--concurrent=NUM (number of concurrent requests)-I.,--Internet (randomly simulating user clicks)-B,--Benchmark (benchmark, set this parameter default delay time is 0)-T,--time=numm (set the test time such as--time=1H, test time one hours)-R,--reps=NUM (number of measurements)-F,--file=File (Specify task file)-R,--rc=file (modifies the location of SIEGERC files, overwriting SIEGERC environment variables)-L,--log (result log position after running)-M,--mark= "text"(Mark files with separators)-D,--delay=NUM (time of each test delay)-H,--header= "text"(Add a header request message)-A,--user-agent= "text" (Set user-Agent)-T--content-type (specifies the contents of the Content-type field in the HTTP request)
Linunx Siege Installation