统计最大tps和request平均值

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

posted @ 2018-04-29 20:54  爱热闹的杨小厨  阅读(536)  评论(0编辑  收藏  举报