Skip to content
Preptima
mediumConceptScenarioMidSeniorStaff

Users say the LLM feature in your product feels slow. How do you work out what to fix?

5 min readUpdated 2026-08-15

Answer

Short answer

Split the measurement into time-to-first-token and inter-token latency, because they come from different phases. The first is driven by prompt length and queueing and is fixed with shorter prompts, prefix caching and streaming; the second is the decode loop, fixed only by generating fewer tokens.

Was this answer helpful?

Likely follow-ups

  • Your p50 time-to-first-token is fine but p99 is five times worse. Where do you look?
  • How would you make a two-step chain feel faster without removing either step?
  • You add a reranker in front of the model and total latency rises. How do you decide whether to keep it?
  • What changes about this analysis when the feature is a background job rather than a chat box?

Related questions

Masterclass guide

Further reading