2009-10-19 136 views
2

我試圖對我寫的一個簡單的web服務器進行基準測試,但是我很難破譯Autobench輸出的內容。我一直在尋求幫助(甚至通過autobench和httperf源代碼),但一直沒有能夠理解發生了什麼。解決Autobench輸出問題

我跑我的服務器上的以下指標:

autobench --single_host --host1 10.0.1.5 --port1 5555 --uri1 /Tests --quiet --low_rate 20 --high_rate 200 --rate_step 20 --num_call 10 --num_conn 5000 --timeout 5 --file results.csv 

這是我的results.csv文件(與可讀性一些額外的空格):

dem_req_rate,req_rate,con_rate,min_rep_rate,avg_rep_rate,max_rep_rate,stddev_rep_rate,resp_time,net_io,errors 
200,   40.0, 20.0, 20.0,  20.0,  20.0,  0.0,   6.2,  15.6, 100 
400,   80.0, 40.0, 40.0,  40.0,  40.0,  0.0,   6.4,  31.2, 100 
600,   119.9, 60.0, 57.0,  59.9,  61.4,  0.9,   17.9,  46.8, 100.160256410256 
800,   159.5, 79.9, 76.0,  79.5,  82.4,  2.1,   32.5,  62.1, 100.48231511254 
1000,  155.9, 94.0, 55.8,  64.7,  75.8,  6.2,   129.4, 50.4, 151.975683890577 
1200,  156.7, 112.6, 28.0,  45.5,  63.2,  11.3,   148.0, 38.9, 255.232261357836 
1400,  154.7, 121.8, 22.2,  38.1,  51.6,  9.3,   175.6, 34.2, 328.299409061064 
1600,  154.5, 134.7, 15.6,  28.7,  52.8,  13.3,   211.6, 27.7, 498.504486540379 
1800,  143.5, 138.7, 3.2,   18.6,  41.0,  11.7,   185.1, 21.1, 768.049155145929 
2000,  158.8, 159.4, 5.6,   18.0,  45.6,  14.6,   234.7, 21.6, 925.925925925926 

我想知道:

dem_req_rate是什麼意思? net_io是什麼意思? errors是什麼意思? errorsdem_req_rate有什麼關係?這些都在哪些單位?

回答

1

您好我也尋找它:

  • dem_req_rate = num_call * curr_rate
    其中curr_rate是根據迭代次數和rate_steplow_ratehigh_rate PARAMS(man autobench設置以獲得更多關於這些PARAMS傳遞給httperf率)
  • net_io =平均網絡吞吐量(千字節/秒)KB/s
    是從的從它的輸出和手冊頁(不鏈接)的Miscellaneous Section
  • errorshttperfErrors Section的結果Total errors及其手冊頁(不鏈接)
+0

感謝這個響應。我想知道dem_req_rate中的'dem'代表什麼。 min_rep_rate的同樣問題,'rep'代表什麼?謝謝。 – LionHeart 2013-05-24 20:10:36

0

只是man httperf 你會找到詳細信息。

0

錯誤應該是錯誤的百分比,但在autobench版本中我有(2.1.1)該值計算錯誤。

是:

$results{percent_errors} = (100 * $results{errors}/$results{replies}); 

它應該是:

$results{percent_errors} = (100 * $results{errors}/($results{replies} + $results{errors}));