KOEN
All notes
DATA & VISUALIZATION

An average of 300 ms, with one wait of 900

Two invented sets of four response times have the same average and very different longest waits. Reading TradeCanvas’s aggregation docs led to a small calculation about what a summary keeps.

Two paper cards with matching gold summary tokens, one hiding a low ribbon and the other a tall loop beneath a magnifying glass

Behind the number 300

300, 300, 300, 300. Then 100, 100, 900, 100. I calculated the average of these invented response times in milliseconds. Both came out to 300. Their totals were identical too: 1,200.

These are made-up values, not records from a server. But once I covered the original numbers and kept only the averages, there was no way to tell which set contained the 900.

Imagine someone clicking once and waiting for each result. In the first set, all four waits have the same length. In the second, three are short and one is longer. You can tell both people the average was 300 ms. That does not make their waits feel the same.

I wrote these numbers down after reading TradeCanvas’s realtime data documentation. The charting library includes a TickAggregator that rolls raw ticks into OHLC bars. It keeps the open, high, low and close for an interval: the first value, the highest, the lowest and the last.

I did not install or run the chart engine. What caught my attention in the documentation was the choice of information to keep when several values become one record. It was a different choice from calculating a single average.

So I wrote those four fields beside the second set of response times: first 100, high 900, low 100, last 100. At least the longer wait left a trace. For the first set, all four fields were 300.

This is not a proposal to use financial OHLC bars as a response-time monitoring method. The small example is simply a way to see how the fields in a summary change the questions it can answer.

The average was correct. It just could not answer a question about one particular wait. Sometimes a correct answer still leaves you needing to ask again.

What the high still leaves out

Would keeping the high be enough? I moved the 900 one place earlier in the second set: 100, 900, 100, 100. The average remained 300.

First and last: 100. High: 900. Low: 100. Those four fields were unchanged as well. Yet the long wait had moved from the third request to the second.

Knowing the highest value and knowing when it happened turned out to be different things. Keeping the ends of an interval did not recover the order inside it.

If I want to know whether something briefly slowed down, the high helps. To find the particular request, I need something else, such as timestamps or individual request records. The high alone cannot tell me how often things were slow either.

Adding more figures to a dashboard is not automatically helpful. If the answer someone needs is still missing, they have more numbers and the same question. In this example, writing all four fields was what made the missing order visible.

It gave me a question to ask before reading a summary screen: what am I trying to find here? The overall level, the longest wait, or the place where that wait occurred?

With that settled, it becomes easier to say which original records to retain and what the summary should let a reader open next. That does not mean putting every record on the first screen.

The box labelled average 300 can stay. I would like a way back to the one wait of 900 beside it.

Sources

All notes