Lattice
Skip to content

Throughput and latency

Throughput is tokens per second across the whole deployment; latency is how long one request takes. They trade directly against each other.

By Entry last reviewedmethod

What it implies

Batching raises throughput by making each request slower, so the two cannot be optimised independently. What you want depends entirely on traffic shape: an interactive product needs bounded latency under whatever concurrency arrives, a batch job wants total tokens cheap. Benchmark on a concurrency sweep and plot both: never single-stream latency, which will point you at the wrong runtime.

Related terms

Rules of thumb

  • A definition is only useful next to the decision it changes. Read the linked layer to see where this term bites.
  • If a vendor's definition differs from this one, ask what it measures. Marketing definitions rarely name a number.
  • Every optimisation spends latency, memory or quality somewhere. Find out which before you turn it on.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.