????1??????
????http://pan.baidu.com/s/1hrlAbI0
????2?????????
?????????????
????n????????????е????????????????????????????
????-c??β???????????????????????????
????-t?????????е????????????????????-n 50000??????????????????????????????????????????????????????????????
????-p?????????POST????????????
????-P??????????????BASIC??????Ρ?????????????????:?????????base64???????????????????????????(???? ???????401??????????)??????????????????
????-T POST??????????Content-type??????
????-v??????????????????-4?????????????????3????????????????????(404??200??)??2???????????????????????????
????-V????汾????????
????-w??HTML??????????????????????????????????п????????
????-i???HEAD??????????GET??
????-x????<table>????????????
????-X???????????????????
????-y????<tr>????????????
????-z????<td>????????????
????-C???????????Cookie:?С???????????name=value??????????????????????????
????-H??????????????????????????????????????Ч???????У????а???????e???????κ?????(?磬"Accept-Encoding:zip/zop;8bit")??
????-A?????????BASIC??????Ρ?????????????????:?????????base64???????????????????????????(???????????401??????????)??????????????????
????-h?????÷?????
????-d?????"percentage served within XX [ms] table"?????(??????汾?????)??
????-e???????????????(CSV)????????а????????????????????????????(??1%??)??????????(????????λ)????????????????“???????”???????'gnuplot'????????á?
????-g?????в?????д?????'gnuplot'????TSV(??Tab????)?????????????????????Gnuplot??IDL??Mathematica??Igor????Excel?С????е??????????
????-i???HEAD??????????GET??
????-k????HTTP KeepAlive????????????HTTP??????ж??????????????????KeepAlive?????
????-q??????????????????150??ab???????10%????100?????????????stderr?????????????????-q????????????Щ?????
????3?????
????1??????cmd??DOS?????????ab??bin???£?
?????????Windows???????????£?????ab.exe???????????????ab.exe??????????????????????С? ????????????????
????2????????????
??????url?http://172.18.97.17:8080/admin/auth????100??????????????????????D:/Desktop/temp/post/post.txt?????
??????? 'application/x-www-form-urlencoded'??Щ???????? '
????ab -n 100 -p D:/Desktop/temp/post/post.txt -T 'application/x-www-form-urlencoded' http://172.18.97.17:8080/admin/auth
???????D:/Desktop/temp/post/post.txt?????????url???????tokenId???????
????tokenId=be4afc178e5c2526ac99289cda93399dd4e
????????????????????????&??????????????
????tokenId=be4afc178e5c2526ac99289cda93399dd4e
????userName=admin&password=e10adc3949ba59abbe56e057f20f883e
??????????£?

????4?????????
??????????????????????м?????????????
????1???????????Requests per second??
????????????????????????????????????λ??reqs/s??????????????????????μ?λ??????????????????????????????μ?λ?????????????????????????????????
?????????????????????????????????仰?????????????壺
????a????????????????????
????b????????????????£????????????????
???????????????????/?????????Щ??????????????????
????Request per second=Complete requests/Time taken for tests
??????????????????????????????????????????????????á?
????2????????????????The number of concurrent connections??
??????????????????????????????????????????????????????????????
????3???????????????Concurrency Level??
??????????????????????????????????????????????????????????????????????????HTTP/1.1?£?IE7????????????????IE8???6???????????FireFox3???4???????????????????????????????????ó????????????
????4???????????????????Time per request??
??????????????????????????????????????/??????????/?????????????????
????Time per request=Time taken for tests/??Complete requests/Concurrency Level??
????5??????????????????????Time per request:across all concurrent requests??
??????????????????????????????????????/??????????????
????Time taken for/testsComplete requests
?????????????????????????????
??????????????????????????????/?????????????
????Time per request/Concurrency Level
?????????
????1?????post?????????????????????????????????????get?????????????????????????漴?????Я??tokenId????
????ab -n 100   http://localhost:8080/admin/auth/quickAuth?tokenId=1111
????2??post ??????? json???????
????ab -p C:/Users/zcr/Desktop/postjson.txt -T application/json -c 10 -n 2000 http://172.18.97.17:8080/admin/auth