LoadRunner中90%響應時間的理解

性能測試+python自動化測試培訓招生中,可諮詢QQ:2083503238

荔枝FM手機客戶端搜索“挨踢脫口秀”即可訂閱我們

官網:http://xqtesting.sxl.cn


最近有朋友老問關於90%的響應時間不太理解,顧摘錄如下內容供大家參考:


官方解釋:

Solution: The 90th percentile is the value for which 90% of the data points are smaller

The 90th percentile is a measure of stastical distribution, not unlike the median. The median is the middle value. The median is the value for which 50% of the values were bigger, and 50% smaller. The 90th percentile tells you the value for which 90% of the data points are smaller and 10% are bigger. 

Statistically, to calculate the 90th percentile value:
1. Sort the transaction instances by their value.
2. Remove the top 10% instances.
3. The highest value left is the 90th percentile.


由此可見,僅僅有平均事務響應時間是不夠的。因爲平均事務響應時間滿足了性能需求,未必就表示系統的性能已經滿足了絕大多數用戶的要求。

假如有兩組測試結果,響應時間分別是 {1,3,5,10,16} 和 {5,6,7,8,9},它們的平均值都是7,你認爲哪次測試的結果更理想?

所以

1)90%響應時間它是統計響應時間的參數,帶有統計學意義,是科學性的;

2)可以這樣理解,這個事務所有的運行次數中,90%的次數落在這個響應時間裏;(90%的響應時間不超過XX秒)

3)90%響應時間可以在LoadRunner中根據需要進行自由設置的,例如70%,95%;

4)爲了真實的評估軟件性能,建議讓測試場景執行較長的時間,讓工具採集更多數據,數據越多,在概率論中的數據分佈中看,最具有真實性;

5)該參數是性能測試結果的一個算法,與測試工具無關,無論你是使用LoadRunner、JMeter或其它性能測試工具,該理論同樣適用。

wKioL1cN4GbgcaQ7AABvkAwwwEI658.jpg

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