原文地址:http://www.cnblogs.com/guodongdidi/p/6018356.html
首先给出Google到的答案:
The tp90 is a minimum time under which 90% of requests have been served.
tp90 = top percentile 90
Imagine you have response times:
Calculating TP is very simple:
1. Sort all times in ascending order: [2s, 10s, 100s, 1000s]
3. We get time for the item found above. TP50=10s. TP90=1000s
依此,翻译过来,TP99就是满足百分之九十九的网络请求所需要的最低耗时。同理TP999就是满足千分之九百九十九的网络请求所需要的最低耗时。
举个例子:有四次请求耗时分别为:
10ms,1000ms,100ms,2ms
那么我们可以这样计算TP99:4次请求中,99%的请求数为4*0.99,进位取整也就是4次,满足这全部4次请求的的最低耗时为1000ms,也就是TP99的答案是1000ms。
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/209875.html原文链接:https://javaforall.net
