效能指標TP99之我解_效能

來源:互聯網
上載者:User

首先給出Google到的答案:

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

 

依此,翻譯過來,TP99就是滿足百分之九十九的網路請求所需要的最低耗時。同理TP999就是滿足千分之九百九十九的網路請求所需要的最低耗時。

舉個例子:有四次請求耗時分別為:

10ms,1000ms,100ms,2ms

那麼我們可以這樣計算TP99:4次請求中,99%的請求數為4*0.99,進位取整也就是4次,滿足這全部4次請求的的最低耗時為1000ms,也就是TP99的答案是1000ms。

 

如有紕漏,歡迎斧正。


from: http://www.cnblogs.com/guodongdidi/p/6018356.html

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.