HTTPS的結果分析

1. 官方描述:
Httperf is a tool for measuring web server performance. It provides a flexible facility for generating various HTTP workloads and for measuring server performance. The focus of httperf is not on implementing one particular benchmark but on providing a robust, high-performance tool that facilitates the construction of both micro- and macro-level benchmarks. The three distinguishing characteristics of httperf are its robustness, which includes the ability to generate and sustain server overload, support for the HTTP/1.1 and SSL protocols, and its extensibility to new workload generators and performance measurements.
2. 使用方法:
httperf --client=0/1 --server=[YOUR_DOMAIN] --port=443 --uri=/a.php --rate=100 --send-buffer=4096 --recv-buffer=16384 --ssl --num-conns=50 --num-calls=1000
例樣含義:
  • --client=I/N 指定當前客戶端I,是N個客戶端中的第幾個。用於多個客戶端發請求,希望確保每個客戶端發的請求不是完全一致。一般不用指定
  • --server 請求的server名
  • --port 請求的端口號,默認爲80,如果指定了--ssl爲443
  • --uri 請求路徑
  • --rate 指定一個固定速率來創建連接和會話
  • --num-conns 創建連接數
  • --num-call 每個連接發送多少請求
  • --send-buffer 指定發送http請求的最大buffer,默認爲4K,一般不用指定
  • --recv-buffer 指定接受http請求的最大buffer,默認爲16K,一般不用指定
3. 結果分析:
  • Maximum connect burst length: 6
  • 最大併發連接數:6
  • Total: connections 50 requests 5050 replies 5000 test-duration 9.193 s
  • 一共50個連接,5050個請求,應答了5000個,測試耗時:9.193秒
  • Connection rate: 5.4 conn/s (183.9 ms/conn, <=50 concurrent connections)
  • 連接速率:5.4個每秒(每個連接耗時183.9 ms, 小於指定的50個併發連接)
  • Connection time [ms]: min 8364.0 avg 8757.5 max 9014.7 median 8899.5 stddev 231.9
  • 連接時間(微秒):最小8364.0,平均8757.5,最大9014.7,中位數 8899.5, 標準偏差231.9
  • Connection time [ms]: connect 89.9
  • 連接時間(微秒):連接 89.9
  • Connection length [replies/conn]: 100.000
  • 連接長度(應答/連接):100.000
  • Request rate: 549.3 req/s (1.8 ms/req)
  • 請求速率:549.5 (pqs),每個請求1.8 ms
  • Request size [B]: 72.0
  • 請求長度(字節):72.0
  • Reply rate [replies/s]: min 514.8 avg 514.8 max 514.8 stddev 0.0 (1 samples)
  • 響應速率(響應個數/秒):最小514.8, 平均514.8,最大514.8,標準偏差 0.0(一個例樣)
  • Reply time [ms]: response 25.5 transfer 61.0
  • 響應時間(微妙):響應25.5,傳輸61.0
  • Reply size [B]: header 147.0 content 53263.0 footer 2.0 (total 53412.0)
  • 響應包長度(字節):響應頭147.0 內容:53263.0 響應末端 2.0(總共53412.0)
  • Reply status: 1xx=0 2xx=5000 3xx=0 4xx=0 5xx=0
  • 響應包狀態: 2xx 有5000個,其他沒有
  • CPU time [s]: user 9.00 system 0.20 (user 97.9% system 2.1% total 100.0%)
  • CPU時間(秒): 用戶9.00 系統0.2(用戶佔了97.9% 系統佔2.1% 總共100%)
  • Net I/O: 28407.8 KB/s (232.7*10^6 bps)
  • 網絡I/O:28407.8 K每秒
  • Errors: total 50 client-timo 0 socket-timo 0 connrefused 0 connreset 50
  • 錯誤:總數50 客戶端超時0 套接字超時0 連接拒絕0 連接重置50
  • Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0
  • 錯誤:fd不正確0 地址不正確0 ftab佔滿0 其他0

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章