Evaluating LLM Inference Performance: Throughput, Use Cases, and Model Selection
This article explains how to evaluate large language models for real production workloads instead of relying on public leaderboards. It covers three core dimensions: inference throughput and latency, task tiering and capability matching, and total cost of ownership rather than per-token price. It also outlines a reproducible evaluation workflow, common pitfalls to avoid, and a matching mechanism that evolves with business needs.
1. The Core Problem: Model Evaluation Is About Fit, Not Ranking
In real engineering work, teams often run into an awkward situation: a model that ranks near the top of a public leaderboard performs only average in their own business, while a seemingly mid-tier model gets the entire workflow running within a fixed budget. The reason is not complicated—model capability is a multi-dimensional vector, but business needs usually touch only one or two of those dimensions. So the first step in evaluation is to drop the single “who is the strongest” narrative and answer three questions instead: what capabilities does the task require, how much latency can the system tolerate, and what is the cost per unit of effective output.
The recurring observation that “it is hard to find a scenario where a specific model is truly irreplaceable” is essentially a cost-performance imbalance caused by capability redundancy. The more reliable engineering approach is to tier the tasks first, then match each tier with a model of the appropriate scale.
2. Dimension One: What Inference Throughput and Latency Mean in Practice
High throughput is not just about being “faster”—it directly shapes the architecture. When inference throughput on a single GPU or a single rack increases several times over, a service that originally needed horizontal scaling across many instances can converge to fewer nodes, which in turn reduces scheduling complexity, network overhead, and the failure surface. Common high-throughput approaches in the industry typically rely on a few general techniques:
- Continuous batching, which packs token generation from different requests into dynamic batches to improve compute utilization;
- KV cache reuse and prefix caching, which avoid recomputation for requests that share the same system prompt;
- Quantization and operator fusion, which trade a little precision for higher effective bandwidth within an acceptable range;
- Speculative decoding, which uses a small draft model plus verification from the main model to reduce average latency.
What needs to be stressed is that throughput gains must be viewed together with the latency the business can accept. For interactive completion scenarios, time to first token (TTFT) affects the experience more than total throughput; for offline batch processing, throughput is the core metric. A sample load-test record structure is shown below, purely to illustrate which fields should be collected, not any specific values:
Scenario: code completion / document summarization / multi-step reasoningMetrics: TTFT(ms), TPOT(ms/token), output throughput(tokens/s), concurrency, error rateRecords: input length distribution, output length distribution, cache hit rate, batch size
3. Dimension Two: Task Tiering and Capability Matching
Tiering tasks by “cognitive depth” is the key to avoiding capability mismatch. A possible tiering:
- Divergent tasks: brainstorming, naming, first drafts of proposals. These require breadth and diversity, place low demands on long-chain reasoning, and can be handled by mid-scale models.
- Execution tasks: code completion, format conversion, structured extraction, routine Q&A. These require stability, low latency, and batchability, and belong to the throughput-first range.
- Complex reasoning tasks: mathematical proofs, long-document consistency checks, cross-module refactoring. These require long chains of thought and self-correction, and belong to the high-value, low-frequency range.
The “using a model to write English lecture notes for a mathematical proposition” case mentioned in the original discussion belongs to the third tier: the model has to fill in missing proofs on its own and organize them into a systematic text. Such tasks are sensitive to chain-of-thought length and rigor, so high quota consumption is normal. The engineering recommendation is to set up separate routing and quotas for third-tier tasks so they do not crowd out the throughput resources of the first and second tiers.
A simplified routing pseudocode example:
def route(task):if task.depth == "complex_reasoning":return high_reasoning_pool(quota=task.quota, cache=True)if task.depth == "execution":return low_latency_pool(batch=True)return balanced_pool()
4. Dimension Three: Total Cost of Ownership, Not Unit Price
When evaluating cost, looking only at the price per million tokens is easy to misjudge. A more complete measure is total cost of ownership: it includes inference resource usage, extra consumption from queuing and retries, human review cost, and rework caused by unstable output. A practical approach is to establish a “cost per unit of effective output” metric, that is, total cost divided by the number of outputs that pass validation. If a model has a low unit price but needs two rounds of manual correction, its real cost may be higher than a pricier option with a better first-pass rate.
Deployment form also affects the cost structure: pay-as-you-go public cloud calls suit fluctuating traffic; a self-built inference cluster suits stable high load but requires bearing operations, scaling, and model update costs; a hybrid model keeps high-frequency, low-difficulty requests on the self-built side and spills low-frequency, high-difficulty requests over to the cloud.
5. A Reproducible Evaluation Process
It is advisable to turn model selection into a repeatable experimental process rather than a one-off subjective experience:
- Build a business dataset: sample from real logs, covering the distribution of input lengths and task types;
- Define acceptance criteria: write automatically verifiable pass conditions for each task type, such as unit test pass rate, format compliance rate, and sampled human ratings;
- Dual-track load testing: record quality metrics and performance metrics at the same time, and output a two-dimensional scatter plot rather than a single ranking;
- Canary release and rollback: run a small-traffic canary and keep the ability to switch back to the old configuration with one click;
- Periodic re-evaluation: models and inference frameworks keep iterating, and quarterly re-evaluation avoids stale conclusions.
6. Common Pitfalls
- Using leaderboards instead of a business dataset: public evaluations differ greatly from private distributions, so conclusions cannot be transferred directly;
- Testing only peak throughput: ignoring latency jitter under long-tail inputs;
- Ignoring cache and batching configuration: the same model can differ several times in performance depending on configuration;
- Treating “it runs” as “it runs well”: for high-difficulty tasks without automated validation, human review costs will eat up the gains;
- One-off selection: models iterate fast, and static conclusions have a short shelf life.
7. Conclusion
The end point of model selection is not finding the “single correct” model, but building a matching mechanism that evolves with the business: use task tiering to determine capability needs, use throughput and latency to determine the architecture, and use cost per unit of effective output to determine budget allocation. When these three are aligned, the waste caused by capability redundancy drops significantly, and the system can achieve a sustainable balance among quality, speed, and cost.
