Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do we mean by "top percentile" or TP based latency?

When we discuss performance of a distributed system we use the terms tp50, tp90, tp99.99 TPS. Could someone explain what do we mean by those?

like image 332
user1071840 Avatar asked Jul 02 '13 20:07

user1071840


People also ask

What does TP 90 mean?

tp90 is a maximum time under which 90% of requests have been served. Imagine you have times: 10s 1000s 100s 2s. Calculating TP is very simple: sort all times in ascending order: [2s, 10s, 100s, 1000s] find latest item in portion you need to calculate.

What is TP99 latency?

TP99 latency is the minimum time meeting requirements of 99% requests. In APM, latency refers to TP99 latency. Example: Assume that there are 100 requests, and the time consumed by the requests is 1s, 2s, 3s, 4s... 98s, 99s, and 100s. To meet the requirements of 99% requests, at least 99s is required.

What is TP100?

The PBS TP100 is a turboprop engine, which is ideal for small aircraft and unmanned aerial vehicles (UAV's) and is particularly suitable for use by the rescue services, the police, the military (for reconnaissance purposes) and in agriculture.


1 Answers

tp90 is a maximum time under which 90% of requests have been served. Imagine you have times:

10s 1000s 100s 2s 

Calculating TP is very simple:

  • sort all times in ascending order: [2s, 10s, 100s, 1000s]
  • find latest item in portion you need to calculate. For TP50 it will ceil(4*.5)=2 requests. You need 2nd request. For TP90 it will be ceil(4*.9)=4. You need 4th request.
  • get time for the item found above. TP50=10s. TP90=1000s
like image 132
Sergey Romanovsky Avatar answered Sep 28 '22 04:09

Sergey Romanovsky