1、使用ab进行测试
ab -c 500 -n 50000 https://www.baidu.com/
2、使用siege测试
siege -v -c 100 -t 100S -H "Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.
ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms
-xpsdocument, application/xaml+xml, */*" -H "User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; QQDownload
713; EmbeddedWB 14.52 from: http://www.b.com/ EmbeddedWB 14.52; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0
.04506.648; .NET CLR 3.5.21022)" -H "Accept-Encoding: gzip, deflate" -H "Connection: close" -H "Cache-Control: no-cache" -H "Content
-Type: application/json; charset=utf-8" -H "Accept-Language: zh-cn" "http://xxx/query POST <./query.json"
query.json
{"_type":0,"app":"1"}