1. 程式人生 > >統計最大tps和request平均值

統計最大tps和request平均值

ESS host oca log cal 均值 pri txt $1

awk -F ‘"‘ ‘{url[$16]++}END{for(i in url)print i,url[i]}‘ localhost_access_log.2018-04-28.txt |awk‘{print$3}‘|sort|uniq -c|sort
awk -F‘"‘ ‘{ sum += $(NF-1); } END { print "sum = " sum; print "average = " sum/NR }‘ localhost_access_log.2018-04-28.txt

統計最大tps和request平均值