{"id":1216,"date":"2013-05-31T15:30:38","date_gmt":"2013-05-31T07:30:38","guid":{"rendered":"http:\/\/www.strongd.net\/?p=1216"},"modified":"2013-05-31T15:30:38","modified_gmt":"2013-05-31T07:30:38","slug":"siege","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=1216","title":{"rendered":"SIEGE"},"content":{"rendered":"<p>Siege is an http load testing and benchmarking utility. It was designed to let web developers measure their code under duress, to see how it will stand up to load on the internet. Siege supports basic authentication, cookies, HTTP and HTTPS protocols. It lets its user hit a web server with a configurable number of simulated web browsers. Those browsers place the server \u201cunder siege.\u201d<\/p>\n<p>\u4e0b\u8f7d\u6700\u65b0\u7248<\/p>\n<p>wget http:\/\/www.joedog.org\/pub\/siege\/siege-latest.tar.gz<\/p>\n<p>tar -zxf siege-lastest.tar.gz<\/p>\n<p>cd siege-xxx<\/p>\n<p>.\/configure &amp;&amp; make &amp;&amp; install<\/p>\n<p>vi \/tmp\/tmpurl<br \/>\nhttp:\/\/127.0.0.1\/index.html<br \/>\n<em id=\"__mceDel\"><em id=\"__mceDel\">http:\/\/127.0.0.1\/images\/banner\/1.jpg<br \/>\n<em id=\"__mceDel\"><em id=\"__mceDel\"><em id=\"__mceDel\"><em id=\"__mceDel\">http:\/\/127.0.0.1\/images\/banner\/8.jpg<\/em><\/em><\/em><\/em><\/em><\/em><\/p>\n<p>siege -c 100 -b -i -r 100 -f \/tmp\/tmpurl<\/p>\n<p>100\u4e2a\u7528\u6237\uff0c\u6267\u884c100\u6b21\u3002<\/p>\n<blockquote><p>** SIEGE 3.0.0<br \/>\n** Preparing 100 concurrent users for battle.<br \/>\nThe server is now under siege.. done.<\/p>\n<p>Transactions: 10000 hits<br \/>\nAvailability: 100.00 %<br \/>\nElapsed time: 2.44 secs<br \/>\nData transferred: 1396.79 MB<br \/>\nResponse time: 0.02 secs<br \/>\nTransaction rate: 4098.36 trans\/sec<br \/>\nThroughput: 572.45 MB\/sec<br \/>\nConcurrency: 91.24<br \/>\nSuccessful transactions: 10000<br \/>\nFailed transactions: 0<br \/>\nLongest transaction: 0.23<br \/>\nShortest transaction: 0.00<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Siege is an http load testing and benchmarking utility. It was designed to let web developers measure their code under duress, to see how it will stand up to load on the internet. Siege supports basic authentication, cookies, HTTP and HTTPS protocols. It lets its user hit a web server with a configurable number of &hellip; <a href=\"https:\/\/www.strongd.net\/?p=1216\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">SIEGE<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,20],"tags":[],"class_list":["post-1216","post","type-post","status-publish","format-standard","hentry","category-linux","category-20"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1216"}],"version-history":[{"count":2,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1216\/revisions"}],"predecessor-version":[{"id":1218,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1216\/revisions\/1218"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}