Throughput vs latency in LLM serving
Throughput vs latency in LLM serving: what each measures, why they trade off, and how to pick a setup for batch or interactive work.
Updated
Throughput is how much work a serving system finishes in a set amount of time, usually counted in tokens per second or documents per hour. Latency is how long one request takes, from the moment it is sent to the moment the answer is done. On the same hardware you cannot push both to their best values at once, so most of the design work in LLM serving is choosing which one to favor.
What throughput measures
Throughput counts work across all requests together. A system with high throughput finishes many tokens or documents in an hour. For batch jobs, such as classifying a month of invoices overnight or extracting clauses from a contract archive, throughput sets how long the job runs. A job that finishes in an afternoon on one setup and overnight on another is a real difference, even if no single request ever feels slow.
Throughput is a rate, so always check the unit. Tokens per second, documents per hour and requests per minute describe different things. A long contract and a short chat turn do not compare well on requests per minute. Convert to the unit your job cares about before you compare two setups.
What latency measures
Latency counts the time for one request. On a live screen, the number people feel is time to first token, the wait before any text appears. The second number is total time, which grows with output length. A user waiting on an autocomplete suggestion cares mostly about the first number. A pipeline that writes a long JSON record cares about the total.
Latency also depends on load when the request arrives. A quiet server answers fast. The same server with a full queue answers slower, even though it is doing more total work. A latency figure with no load level attached tells you very little.
Why they pull against each other
Generating each token means moving model weights and cached attention data through memory. Much of that cost is shared, so serving several requests together spreads it across more answers. This grouping is called batching. More requests finish each second, but each one may wait for its group to fill, and each step takes a little longer as the group grows.
Memory sets a hard limit. Each active request holds its own cache while it runs. Once memory is full, new requests queue, and latency climbs sharply even though the hardware looks busy. For the mechanics, read our guide on concurrency in LLM serving.
Worked example, with made-up numbers. A nightly job must process 10,000 invoices, each producing about 300 output tokens, so 3 million output tokens in total. A setup that sustains 5,000 output tokens per second across all requests clears that in 600 seconds, about ten minutes. Now run 32 streams at once and share that rate evenly, and each stream moves at roughly 156 tokens per second. That is far faster than a person reads, but the share shrinks every time the load grows, so the number to watch is the per-stream rate at your real peak.
Reading a vendor throughput number
Ask what load the number was measured under. A tokens-per-second figure with no concurrency level is hard to use. Our headline figures are for one request at a time: the Accuracy tier writes about 90 output tokens per second and the Standard tier about 174. Throughput is a different number. With 32 requests at a time, the Accuracy tier processes about 5,100 tokens per second and the Standard tier about 14,000, counting input and output across all requests. Standard handles 2.7x more documents an hour than Accuracy, so check which tier your quality bar needs before you compare throughput inside that choice.
Quality and speed are separate questions, so check both. Accuracy on contract extraction is measured with five-fold cross-validation, and full results show the scores for each tier.
Ask about cost per unit of work too. On a per-token API, a faster setup does not change the bill by itself. Batch endpoints usually cost less per token than real-time calls, but their results arrive later, so they fit overnight work and not a live screen. To turn your monthly token count into a number, try the LLM cost calculator.
Common mistakes
- Comparing tokens per second from two tests run at different concurrency levels.
- Planning around average latency when the screen needs the slow tail to stay under a limit.
- Measuring with prompts shorter than your real ones, which makes any setup look faster than it will be.
- Comparing jobs by requests per minute when their documents differ in length.
- Sending batch work through the live path, which pays for response-time headroom the job never uses.
- Treating the knee as fixed. It moves when prompt lengths change, so measure again after your workload shifts.
Choosing a setup for your workload
Start by sorting your calls. If a person is waiting on the screen, latency is the target, and you should accept lower throughput per machine. If a job runs overnight and nobody is waiting, throughput is the target, and you should batch as much as memory allows. Many products have both, so split them. The low-latency LLM guide covers the interactive side, and high-throughput document processing covers the volume side.
Then measure:
- Mark each call as waiting on a person or not.
- Write a deadline for each batch job, in hours.
- Replay a sample of real prompts at 4, 8, 16 and 32 concurrent requests.
- Log time to first token, total time and tokens per second at each level.
- Find the knee, the load where latency starts climbing faster than throughput.
- Plan capacity at the knee, not at the peak rate on a spec sheet, and keep headroom for bursts.
If you are not sure which of your calls are waiting on a person and which are batch work, a free audit can help sort them. Own Weights maps your AI spend by task from your code and invoices, then shows where a trained model could serve the volume work. Use the Book a free audit button on this page to set up a call.
Questions
What is the difference between throughput and latency in LLM serving?
Latency is how long one request takes, including the wait for the first token. Throughput is how much total work the system finishes in a fixed time, such as tokens per second or documents per hour. Pushing one number up usually pulls the other down.
Can I get low latency and high throughput at the same time?
Only while the hardware still has spare capacity. Once requests start queuing for memory or compute, extra load adds a little throughput and a lot of latency. Running interactive and batch traffic on separate setups lets each one be tuned for its own goal.
How do I test throughput before I commit to a setup?
Replay a sample of your real prompts at several concurrency levels and log time to first token, total time and tokens per second at each one. Choose the highest load where your response time still works for users and your deadline still holds.