Questions / Quant development, Networking & latency
The average hides a tail
Of 100 requests, 99 take 1 ms and one takes 101 ms. What is mean latency?
Answer it in the app It's free. You get hints, a second try if you miss, and a follow-up question.
Show the answer and worked solution
Answer: 2 ms
- Total latency is 99×1 + 101 = 200 ms; divide by 100 to get 2 ms.
Interview shortcut. Mean = total/count = (99 + 101)/100.
In the app this has a follow-up where one thing about the setup changes. Try the follow-up.