隱藏訪問(wèn)內(nèi)容顯示訪問(wèn)花費(fèi)時(shí)間
curl -s -w "%{time_total}\n" -o /dev/null -X POST -H "Cache-Control: no-cache" -d '["帝森置業(yè)集團(tuán)有限公司"]' http://172.210.5.1:22000/companygraph/queryGraphByCompanyName >> test-time.txt
顯示訪問(wèn)內(nèi)容和花費(fèi)時(shí)間
curl -s -w "%{time_total}\n" -X POST -H "Cache-Control: no-cache" -d '["帝森置業(yè)集團(tuán)有限公司"]' http://172.210.5.1:22000/companygraph/queryGraphByCompanyName >> test-time.txt
開(kāi)啟10個(gè)線程訪問(wèn)1000條數(shù)據(jù),并保存訪問(wèn)時(shí)間
- 1000條下面數(shù)據(jù)列在curlgremlins.txt文件中,其中公司名稱要替換
curl -s -w "%{time_total}\n" -o /dev/null -X POST -H "Cache-Control: no-cache" -d '["帝森置業(yè)集團(tuán)有限公司"]' http://172.210.5.1:22000/companygraph/queryGraphByCompanyName >> test-time.txt
2.執(zhí)行如下語(yǔ)句
< curl gremlins.txt xargs -r -L 1 -P 10 curl >> test-time.txt