????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