apachebench,即ab,apache http server benchmarking tool,是apache提供的衡量http伺服器效能的乙個簡單的小工具,用來對apache伺服器進行壓力測試,主要的衡量指標就是伺服器每秒能夠處理請求的數目,同時支援併發請求。
下面舉個例子來分析ab
執行命令:ab -n 10 -c 10
執行結果和分析:
#開始是一些描述資訊,版本等
#ab連線的埠號https是443、http為80
server port: 443
ssl/tls protocol: tlsv1/sslv3,aes128-sha,2048,128
document path: /
document length: 227 bytes
#併發請求的個數
concurrency level: 10
#測試的總時間
time taken for tests: 0.110 seconds
#完成的請求數
complete requests: 10
failed requests: 0
write errors: 0
#總共傳輸的位元組數
total transferred: 9292 bytes
html transferred: 2270 bytes
#每秒的請求數目(mean為平均)
requests per second: 90.89 [#/sec] (mean)
#每個請求的平均響應時間(mean為平均)
time per request: 110.026 [ms] (mean)
#所有併發請求響應完成時間
time per request: 11.003 [ms] (mean, across all concurrent requests)
#傳輸速率
transfer rate: 82.47 [kbytes/sec] received
connection times (ms)
min mean[+/-sd] median max
connect: 8 10 1.7 9 13
processing: 2 31 43.1 6 101
waiting: 2 31 43.1 6 101
total: 11 41 43.1 15 110
#下面為結果的統計資訊,50%的使用者請求響應時間小於15ms,依次類推,所有使用者請求的響應時間不超過110ms
percentage of the requests served within a certain time (ms)
50% 15
66% 19
75% 95
80% 104
90% 110
95% 110
98% 110
99% 110
100% 110 (longest request)
LineDDA的乙個例子
unit unit1 inte ce uses windows,messages,sysutils,variants,classes,graphics,controls,forms,dialogs,extctrls,stdctrls,buttons type tfmmain class tform ...
SQL GROUP CONCAT的乙個例子
我有乙個這樣的資料庫 user info 現在有乙個需求是把這樣 9 條記錄按照 username 來 group 成3條記錄 目標 shu female 201 lee male 202 yuki female 181 如果用select from user info group by usern...
explode的乙個例子
select level as level,explode split 1,2,3 as value 可以生成結果 level value level 1 level 2 level 3 lateral view 1.lateral view 用於和udtf函式 explode,split 結合來使...