Where streaming latency actually shows up
Time the first output, the first text on screen, and the end of the stream to pin down where a response feels slow.
When a coding assistant sits on a blank screen, the delay could be in the model call, the stream's trip to the client, or the client's display logic. A single duration for the whole request covers all three. Give each milestone a timestamp so you can see which part changed.
Measure the same request two ways
Use a monotonic clock in a minimal streaming client. Record request start, response headers, the first event carrying model output, the first event carrying answer text, and stream completion. Parsing event boundaries matters because a server can send a keepalive, a role marker, or another event before the model emits a token. Reasoning and tool-call events can also arrive before answer text. Artificial Analysis benchmarking methodology
Then capture the same milestones in the app and add the first visible update. Match the model, endpoint, prompt, streaming settings, and cache conditions. Alternate the client and app runs from the same machine, and record enough repetitions to see whether an apparent gap survives normal variation.
In our Dedicated API test, the same one-sentence prompt finished in 707, 1,075, and 704 ms on DeepSeek V4.1 Flash Hyper. On GLM-5.3 Flash Hyper it finished in 680, 821, and 1,205 ms. The chart shows each attempt through stream close, which includes API and network time. Hostlinku benchmark and test prompts
Time to stream close
| Model | Round 1 | Round 2 | Round 3 |
|---|---|---|---|
| DeepSeek V4.1 Flash Hyper | 707 | 1,075 | 704 |
| GLM-5.3 Flash Hyper | 680 | 821 | 1,205 |
What the gaps can tell you
| Illustrative observation | Next check |
|---|---|
| Headers arrive at 0.2 s, both clients see first output at 1.5 s. | Look at request preparation upstream of the first output. Compare short and long inputs with cache state recorded. |
| The app receives answer text at 0.8 s, then displays it at 2.1 s. | Inspect app-side chunk handling, render batching, and how the chosen endpoint events are mapped to visible text. |
| Both clients show an early first token, then receive updates in bursts. | Compare arrival intervals at the endpoint and after the proxy to see where chunks start arriving together. |
When comparing two routes, track the median and unusually slow runs. Include timeouts and interrupted streams separately, with their counts. For output speed, use the same token accounting on both routes and the elapsed time after the first output. Event count is a poor substitute for token count because one event can carry several tokens.
The first visible update describes how fast the app feels. The complete stream and the next successful tool call describe how soon the agent can act. Measuring both gives you a way to tell whether a change improves the user's experience or the work itself.
Sources
- Benchmarking methodology · Artificial Analysis