The interview problem
A customer says your inference service takes 1.8 seconds while your demonstration showed 180 milliseconds. Their procurement decision depends on meeting a latency target next week. As the FDE, reproduce the discrepancy, propose a fair benchmark and explain what you can commit to before identifying the cause.
Original FDE practice, not a reported company interview. All measurements below are hypothetical. Primary technical documentation retrieved September 27, 2026; interview date not applicable.
1. Agree on what was measured
Ask for the benchmark command, workload description, output and measurement boundary before calling either result wrong. First-token latency, complete-response latency and server compute time are different measurements. Record input and output sizes, model revision, region, client location, retries, concurrency, batching, cache state, connection reuse and warm-up rules. A 180 ms model execution cannot be compared directly with an entire customer workflow containing retrieval, network transfer and decoding.
Write a one-page measurement contract with the customer engineer and acceptance owner. Specify the workload population, offered load, quality requirement, latency percentile, failure denominator and observation window. The original sales claim remains a historical claim to reproduce; a revised acceptance test must not silently replace an unfavorable original test. Do not promise a tenfold improvement before explaining the gap.
2. Build a replayable evidence pipeline
versioned workload manifest + environment manifest
↓
load generator with recorded scheduling times
↓
customer network → service → response validation
↓
per-request records + correlated service diagnostics
↓
repeatable report and discrepancy registerPin the harness version, configuration, dependency versions and input manifest digest. Record model and tokenizer versions where available; document unpinnable managed-service versions. Store synthetic or approved sanitized inputs with the same relevant size and structure. A digest helps identify a dataset but does not anonymize it. Keep credentials and customer data out of broadly shared benchmark artifacts.
For each logical request record intended dispatch, actual dispatch, first response, completion or timeout, attempts, output size, quality result and cache evidence when exposed. Use an elapsed-time clock within the same process, such as Python's perf_counter, for durations. UTC timestamps support cross-system correlation; subtracting unsynchronized host clocks is not a reliable network-latency measurement. CPU time excludes waiting and is unsuitable for end-to-end response time.
NVIDIA's performance reports distinguish client measurements, throughput and server timing components. Apply that separation to the chosen stack without assuming the same fields exist everywhere. Service traces help explain a request; the customer-visible timer determines whether the user experienced the agreed latency.
3. Separate a cache effect from a compute improvement
Suppose the demonstration issued 1,000 requests: 900 exact cache hits at 100 ms and 100 misses at 900 ms. Its mean is (900 × 100 + 100 × 900)/1,000 = 180 ms. Using nearest-rank percentiles, p50 is 100 ms and p95 is 900 ms. Calling 180 ms “typical uncached inference” would be unsupported.
Now suppose the customer's 1,000 unique requests all miss and take 900 ms at low load. The fivefold difference in means is explained by this hypothetical cache mix without a slower miss path. It does not yet explain the full 1.8-second result. If matched high-load traces show a mean 900 ms queue contribution plus 900 ms processing and other time, they account for a 1.8-second mean. The component means must cover the same request population and nonoverlapping intervals; nested trace spans cannot simply be added. These values are measured assumptions for the example, not a way to infer queueing from latency alone.
Run a small matrix: repeated versus unique inputs, crossed with low versus customer concurrency. Preserve semantics and token lengths; adding arbitrary random text to defeat caching can change the work itself. Report cold, warm and production-representative cache distributions separately. Apply declared warm-up rules consistently to both systems, and report startup behavior separately if customers experience it; do not discard slow requests after seeing their outcomes. A cache is a legitimate product optimization when its hit rate and correctness apply to the customer's workload.
4. Reproduce load rather than only request count
A closed-loop driver with 20 continuously occupied request slots and a stable mean response time of 0.5 seconds yields about 40 requests/second under the assumptions of negligible think time and a consistent boundary. At a two-second mean it yields only about 10 requests/second. It slows the offered traffic when the service slows, so it does not establish behavior under a fixed arrival rate of 40 requests/second.
For a fixed-rate scenario, record intended arrivals and actual sends. If an overloaded generator silently sends late, measuring only send-to-completion hides upstream waiting. Report scheduling lag and unfinished work; verify client CPU, connection pools and network capacity. A run that cannot generate the intended load is a failed measurement setup, not proof the service met the target.
Use concurrency sweeps to locate the throughput–latency boundary, then test the agreed arrival process and burst pattern. Keep request batching distinct from concurrent requests and from examples processed. At a stable 50 requests/second and mean end-to-end residence time of 0.8 seconds, Little's law implies an average 40 requests within that same boundary. It does not imply p95 is 0.8 seconds or that every server needs 40 workers.
5. Keep slow failures in the conclusion
Suppose 1,000 tasks produce 950 successful responses in 200 ms and 50 timeouts at five seconds. Successful-response p95 is 200 ms, but the task timeout rate is 5%. If the gate permits at most 1% timeouts, the service fails that gate even though the successful subset looks fast. Timeout observations do not reveal how long those tasks would have taken to complete.
Report logical-task completion separately from attempt counts when retries are enabled, and measure the full retry delay for the logical task. Validate output correctness and output lengths: truncated or invalid responses cannot win a latency comparison. Fix percentile conventions in advance and retain raw or sufficiently detailed measurements; averaging per-run p95 values does not recover the pooled p95.
Repeat runs in interleaved order to reduce time-of-day or shared-capacity confounding. Describe between-run variation rather than presenting one favorable run. Request samples sharing the same outage or host are correlated; a confidence interval that treats them all as independent can be misleading. Use time blocks or independent runs appropriate to the uncertainty being measured.
6. Turn the investigation into a delivery decision
During the first day, reproduce each party's settings and produce a difference table with verified, suspected and unresolved causes. Next, run the smallest controlled comparisons that distinguish hypotheses. Coordinate load-test limits and stopping conditions with the service owner. Do not disrupt production to complete a benchmark.
Present the evidence with a concrete statement: “The 180 ms mean included 90% cache hits. Unique requests averaged 900 ms at low load; the high-load queue contribution remains under investigation.” Attribute a specific portion of the delay to queueing only after correlated measurements support that attribution. A mitigation might reduce concurrency, improve scheduling or change the deployment, but each must preserve the customer's required throughput and quality.
The final packet includes a runnable harness, manifests, raw-result location, metric definitions, repeat results, limitations and an acceptance decision. If the customer environment cannot be reproduced, say which dimensions differ and which conclusions remain conditional. Obtain explicit agreement to any changed success criteria; a favorable internal benchmark does not override a failed customer workflow.
7. Follow-ups and self-review
Follow-ups: Is the demonstration fraudulent because it used a cache? Not necessarily; the claimed workload determines fairness. Does a fixed concurrency impose a fixed request rate? No. Can client latency minus server compute isolate network time? Not without accounting for the other components. Should timeouts disappear from latency reports? Report them separately and include them in the success gate. Does matching versions guarantee reproducibility? Shared capacity and unpinned dependencies can still vary.
Score 0–2 each for measurement contract, reproducible artifacts, cache/load isolation, failure and quality accounting, and an evidence-based customer decision. A strong answer explains both the technical discrepancy and who agrees that the resulting test answers the business question.
Sources and next steps
- Python time: performance counters — elapsed-time measurement semantics; documentation publication date not established.
- NVIDIA Triton performance benchmarking — client/server reports, concurrency and throughput; documentation publication date not established.
The benchmark scenario, calculations and delivery workflow are original. Continue with customer evaluation sets for task-quality coverage or vendor escalation when evidence points to a provider issue.
Continue your preparation
Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.