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
?
以為這是常識,滿大街都應(yīng)該有定義,結(jié)果搜了一下發(fā)現(xiàn)還真不是。特地把搜索學習的結(jié)果總結(jié)在這里了。
TP=Top Percentile,Top百分數(shù),是一個統(tǒng)計學里的術(shù)語,與平均數(shù)、中位數(shù)都是一類。
TP50、TP90和TP99等指標常用于系統(tǒng)性能監(jiān)控場景,指高于50%、90%、99%等百分線的情況。
參考
Stack Overflow:distributed system
為什么這種指標比平均數(shù)和中位數(shù)好:http://apmblog.dynatrace.com/2012/11/14/why-averages-suck-and-percentiles-are-great/
第95個百分位(95th percentile)是什么概念? - 數(shù)學
TP指標: TP50:指在一個時間段內(nèi)(如5分鐘),統(tǒng)計該方法每次調(diào)用所消耗的時間,并將這些時間按從小到大的順序進行排序,取第50%的那個值作為TP50 值;配置此監(jiān)控指標對應(yīng)的報警閥值后,需要保證在這個時間段內(nèi)該方法所有調(diào)用的消耗時間至少有50%的值要小于此閥值,否則系統(tǒng)將會報警。
TP90,TP99,TP999與TP50值計算方式一致,它們分別代表著對方法的不同性能要求,TP50相對較低,TP90則比較高,TP99,TP999則對方法性能要求很高
轉(zhuǎn)載于:https://www.cnblogs.com/robinunix/p/7827423.html
總結(jié)
以上是生活随笔為你收集整理的tp90和tp99是指什么性能指标的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 北京python培训达内
- 下一篇: 做自媒体视频的各种常用工具合集奉上