ab 的结果分析
ab -c 1000 -n 1000 http://www.baidu.com/
?
Server Software: Apache/2.0.54
//平臺apache?版本2.0.54
Server Hostname: 127.0.0.1
//服務(wù)器主機名
Server Port: 80
//服務(wù)器端口
Document Path: /index.html.zh-cn.gb2312
//測試的頁面文檔
Document Length: 1018 bytes
//文檔大小
Concurrency Level: 1000
//并發(fā)數(shù)
Time taken for tests: 8.188731 seconds
//整個測試持續(xù)的時間
Complete requests: 1000
//完成的請求數(shù)量
Failed requests: 0
//失敗的請求數(shù)量
Write errors: 0
Total transferred: 1361581 bytes
//整個場景中的網(wǎng)絡(luò)傳輸量
HTML transferred: 1055666 bytes
//整個場景中的HTML內(nèi)容傳輸量
Requests per second: 122.12 [#/sec] (mean)
//大家最關(guān)心的指標之一,相當于?LR?中的 每秒事務(wù)數(shù) ,后面括號中的?mean?表示這是一個平均值
Time per request: 8188.731 [ms] (mean)
//大家最關(guān)心的指標之二,相當于?LR?中的 平均事務(wù)響應時間 ,后面括號中的?mean表示這是一個平均值
Time per request: 8.189 [ms] (mean, across all concurrent requests)
//每個請求實際運行時間的平均值
Transfer rate: 162.30 [Kbytes/sec] received
//平均每秒網(wǎng)絡(luò)上的流量,可以幫助排除是否存在網(wǎng)絡(luò)流量過大導致響應時間延長的問題
Connection Times (ms)
min mean[+/-sd] median max
Connect: 4 646 1078.7 89 3291
Processing: 165 992 493.1 938 4712
Waiting: 118 934 480.6 882 4554
Total: 813 1638 1338.9 1093 7785
//網(wǎng)絡(luò)上消耗的時間的分解,各項數(shù)據(jù)的具體算法還不是很清楚
Percentage of the requests served within a certain time (ms)
50% 1093
66% 1247
75% 1373
80% 1493
90% 4061
95% 4398
98% 5608
99% 7368
100% 7785 (longest request)
//整個場景中所有請求的響應情況。在場景中每個請求都有一個響應時間,其中50%的用戶響應時間小于1093?毫秒,60% 的用戶響應時間小于1247?毫秒,最大的響應時間小于7785?毫秒
由于對于并發(fā)請求,cpu實際上并不是同時處理的,而是按照每個請求獲得的時間片逐個輪轉(zhuǎn)處理的,所以基本上第一個Time per request時間約等于第二個Time per request時間乘以并發(fā)請求數(shù)
轉(zhuǎn)載于:https://www.cnblogs.com/zhangjunqiang/p/7307300.html
總結(jié)
- 上一篇: AssetBundle Workflow
- 下一篇: 在Shell中使用alias