Define when the wait ends

To assess an AI application's latency, decide which user action starts the clock and which event stops it. For a text assistant, use the interval from pressing Send until the complete answer becomes available. The method below produces a measurement record and a share of usable answers delivered within a chosen deadline.

NVIDIA's documentation distinguishes time to first token, TTFT, from end-to-end request latency: receiving the beginning of an answer and receiving the full answer are separate events. This distinction helps separate a quick start from a quick finish.

Keep completion and suitability separate too. Stop timing when the answer has finished and is fully available, then assess its content. Exclude the reviewer's reading time. Otherwise, differences in reading speed become mixed into application latency.

Three timestamps and a measurement record

Record three events: pressing Send, the first visible answer content, and completion. A loading animation does not count as answer content. If the whole answer appears at once, the second and third events coincide. Use a stopwatch or review a screen recording.

For each attempt, record an identifier, input group, time to first content, time to completion, outcome, and suitability. Also record the date, model, settings, device, and connection conditions for the series. Use the same timing method throughout.

Agree on an observation cutoff beforehand. If nothing complete appears within 30 seconds, record that fact. This is neither a precise completion time nor evidence that the service stopped processing. Keep errors and interrupted observations in the attempt count.

Use a small series rather than one successful attempt

Microsoft recommends testing under conditions close to actual use, including realistic data and network conditions. The following small protocol, developed for this article, applies that principle to a text assistant without programming or a load test.

Prepare 20 different requests: ten with short product descriptions and ten with detailed descriptions. Every request should require the same four output fields. Use the same model, settings, browser, and device. Send requests individually, and record both the input group and actual answer length.

Repeat the series during another time period, keeping its results separate. Retain the first attempt of each series too. Twenty requests are a starting point for finding problems, not evidence of stable performance for all users. Requests sent individually do not establish performance under simultaneous use.

Illustrative example: a product card

Illustrative example: a shop needs product cards containing a name, material, dimensions, and care instructions. All these facts are present in the inputs. Its trial requirement is that at least 18 of 20 attempts produce a complete, usable card within eight seconds. All figures here are invented for the example.

Suppose 18 answers finish within eight seconds, another takes 14 seconds, and one remains incomplete at the 30-second cutoff. Two fast answers omit the material; the other completed answers are usable. The timely, usable share is therefore 16 out of 20, or 80%. The trial requirement is not met.

Suppose the 14-second answer first showed content after 0.7 seconds. Its quick start left another 13.3 seconds until completion. That identifies where the user experienced the wait, but does not identify the cause. Preserve this attempt for further investigation.

How to read the resulting numbers

Start the report with all 20 attempts: how many were usable and timely, completed late, unsuitable, or incomplete at the cutoff. These categories can overlap, so state that explicitly. Report the short-input and long-input groups separately; otherwise their differences can disappear in the combined result.

For completed attempts, list the median and the slowest observed time, alongside the sample size. The median is the middle of the sorted values; with an even count, average the two middle values. A p95 is a threshold covering about 95% of observations. With small samples, it says little about rare delays.

Google explains that percentiles estimated from histogram buckets depend on bucket width and sample count. When reading a monitoring chart, check whether its values are estimates. For a small manual series, preserve individual timings and never present the median of completed attempts as a summary of every attempt.

Check improvements and respect the limits

To check an improvement, change one thing. For example, remove an optional introduction while retaining the four required fields. Compare both versions on the same cases under similar conditions, alternating their order. Check suitability again: a faster answer that drops required information does not satisfy the original requirement.

Ask a colleague to check five attempts against the recording using the same event definitions. If you disagree about when completion occurred, clarify the rule before calculating the summary. Manual timing does not justify millisecond precision. Keep the raw observations so the calculation can be checked.

The result describes this scenario, interface, and test period. Screen timings do not automatically equal API timings, and external observation cannot separate provider queues, network delays, caching, and interface work. Investigating those causes requires measurements inside the application. Keep conclusions at the level your observations support.

Sources