tp90和tp99是指什么性能指标
原文:
https://www.zhihu.com/question/41110088
?
?
?
https://www.google.com.hk/#safe=strict&q=tp50+tp90
The tp90 is a minimum time under which 90% of requests have been served.
tp90 = top percentile 90
Imagine you have response times:
10s
1000s
100s
2s
Calculating TP is very simple:
1. Sort all times in ascending order: [2s, 10s, 100s, 1000s]
2. find latest item in portion you need to calculate.
2.1 For TP50 it will be ceil(4*0.5) = 2 requests. You need 2nd request.
2.2 For TP90 it will be ceil(4*0.9) = 4. You need 4th request.
3. We get time for the item found above. TP50=10s. TP90=1000s
?
以為這是常識,滿大街都應該有定義,結果搜了一下發現還真不是。特地把搜索學習的結果總結在這里了。
TP=Top Percentile,Top百分數,是一個統計學里的術語,與平均數、中位數都是一類。
TP50、TP90和TP99等指標常用于系統性能監控場景,指高于50%、90%、99%等百分線的情況。
參考
Stack Overflow:distributed system
為什么這種指標比平均數和中位數好:http://apmblog.dynatrace.com/2012/11/14/why-averages-suck-and-percentiles-are-great/
第95個百分位(95th percentile)是什么概念? - 數學
TP指標: TP50:指在一個時間段內(如5分鐘),統計該方法每次調用所消耗的時間,并將這些時間按從小到大的順序進行排序,取第50%的那個值作為TP50 值;配置此監控指標對應的報警閥值后,需要保證在這個時間段內該方法所有調用的消耗時間至少有50%的值要小于此閥值,否則系統將會報警。
TP90,TP99,TP999與TP50值計算方式一致,它們分別代表著對方法的不同性能要求,TP50相對較低,TP90則比較高,TP99,TP999則對方法性能要求很高
轉載于:https://www.cnblogs.com/robinunix/p/7827423.html
總結
以上是生活随笔為你收集整理的tp90和tp99是指什么性能指标的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 北京python培训达内
- 下一篇: Python3 简单的将多个PDF文件合