Evaluating LLM Inference Performance: Throughput, Latency, and Scenario Fit
Choosing the right large language model is not a ranking problem but a scenario-matching problem. This article breaks model evaluation into measurable dimensions—quality, latency, throughput, cost, and stability—and explains why quality must be read alongside concurrency and cost. It covers differentiated strategies for brainstorming, execution, and hard reasoning tasks, compares public hosted inference, dedicated instances, and self-deployment through the lens of unit economics and effective utilization, and outlines a practical selection workflow with common pitfalls to avoid.
1. The Starting Problem: Why Model Evaluation Loses Focus
Discussions about LLM capabilities tend to collapse into a single dimension: a leaderboard score, generation speed, or the impression left by one brainstorming session. Such judgments are nearly useless in engineering because they never answer the question that matters—under a specific business scenario, concurrency level, and cost constraint, which model and which deployment shape is the better choice.
Three observations from the original discussion are worth extracting and re-examining:
- Creative ideation tasks are sensitive to a model’s ceiling but relatively tolerant of latency and cost.
- Execution tasks (code generation, structured document output, bulk extraction) are extremely sensitive to throughput and unit cost; when speed differs by an order of magnitude, both the experience and the cost structure change.
- High-end reasoning tasks (open-ended mathematical proofs, long chains of formal writing) remain a capability high ground held by a few models and cannot be judged by the standards of routine tasks.
Translated into engineering language: model selection is not a ranking problem but a scenario-matching problem.
2. Breaking Evaluation into Measurable Dimensions
To make evaluation reproducible, vague impressions must first be decomposed into metrics. Cover at least these five groups:
- Quality: task pass rate, human ratings, formal verification pass rate (whether proof tasks pass a checker), long-context consistency.
- Latency: time to first token (TTFT), time per output token (TPOT), end-to-end completion time.
- Throughput: output rate per GPU or per machine, total throughput under concurrency, batch processing efficiency.
- Cost: cost per task, cost per thousand words, hidden cost of failed retries.
- Stability: performance decay under long context, rate limiting and queueing behavior, output format adherence.
A sketch of an evaluation record structure (pseudocode, field design only):
case = {task_id, category, # ideation / execution / hard reasoningprompt_tokens, output_tokens,ttft_ms, tpot_ms, total_ms,quality_score, verify_pass,concurrency, unit_cost}report = group_by(report, [category, concurrency])
The key point: quality must sit in the same table as latency and cost. Discussing quality without concurrency and cost, or speed without task difficulty, leads to wrong conclusions.
3. Throughput and Latency: Structural Change from Order-of-Magnitude Differences
The original discussion mentioned an experience difference of “nearly nine times the speed.” In engineering terms this is not linear improvement but a change of shape, for three reasons.
First, the interaction mode changes. When output rate is high enough, users shift from “wait and read” to “correct in real time,” and the number of iterations completed in a single session rises sharply, so actual task completion time drops far more than the speed ratio suggests.
Second, batch feasibility changes. High throughput means more requests handled in the same time window, turning offline batch jobs (bulk document generation, log extraction, test completion) from scheduled tasks into pipeline tasks.
Third, the cost model changes. When inference is efficient enough and unit output cost is low enough, the “one large model as a universal fallback” approach that previously did not hold up becomes viable; architecturally, a single general model can replace multi-tier small-model routing, and operational complexity actually decreases.
So for execution scenarios, make “cost per task + P95 end-to-end time” the first-priority metrics, and set quality as a threshold rather than a ranking.
4. Scenario Fit: Differentiated Strategies for Three Task Types
1. Ideation Tasks
The goal is more candidate solutions and greater diversity. Use higher temperature, multi-branch sampling, and parallel generation of multiple drafts followed by cross-filtering. These tasks are insensitive to latency and can run in batches during off-peak hours.
2. Execution Tasks
The goal is stability, repeatability, and low cost. Use low temperature, strongly constrained prompts, structured output (JSON or fixed templates), and automatic retry with validation on failure. Prefer high-throughput inference here, and treat validators (compilation, unit tests, schema checks) as the quality gate.
3. Hard Reasoning Tasks
For example open-ended proofs and complex formal writing. The core is not speed but whether the model can do it at all. Engineering-wise: give it a separate high-budget channel (longer chains of thought, more samples, human review), and make clear it is not suited to high-concurrency online traffic.
A practical routing sketch:
def route(req):if req.category == "hard_reasoning":return high_budget_channel(req) # low concurrency, long output, reviewableif req.category == "execution":return high_throughput_channel(req) # strict constraints, structured, validatedreturn brainstorm_channel(req) # multi-branch, diversity first
5. Deployment Shapes and Unit Economics
The same model can differ more across deployment shapes than across models. Compare at least three:
- Public hosted inference: good elasticity, fast start, suited to teams with volatile traffic and no dedicated operations staff; watch rate limits and queueing.
- Dedicated or exclusive instances: more controllable latency, suited to steady medium-to-high call volume; watch utilization, since low utilization raises unit cost significantly.
- Self-deployment: unit cost falls as utilization rises, but you take on GPU memory capacity, batch scheduling, failure redundancy, and upgrade maintenance.
The key variable for self-deployment is effective utilization. A high-throughput inference stack (continuous batching, paged memory management, operator fusion, quantization) can raise single-GPU output rate several times, but the gains only materialize when the request queue is deep enough. If daily request volume is sparse, self-deployment can end up with higher unit cost. The test is simple: run a queueing simulation on historical request volume, observe unit cost and P95 latency curves at different utilization levels, then decide the shape.
Any rumor that “certain hardware reaches a certain rate” cannot serve as a capacity planning basis. The credible approach is your own load test: fix the input and output length distribution, increase load step by step, and record the throughput and latency inflection points.
6. A Practical Selection Workflow
- Sample real traffic: pull the last 7 days of requests and label task category plus input/output length distribution.
- Build a small evaluation set: 50–100 items per category, including hard and boundary cases, not just pleasant cases.
- Run dual-track evaluation: offline batches for quality and cost, small online traffic for latency and stability.
- Set thresholds and weights: execution tasks by cost and P95, ideation by diversity, hard tasks by pass rate.
- Canary and roll back: release gradually by category and keep a one-click switch back to the previous channel.
- Keep regressing: rerun the evaluation set after any model or inference stack upgrade to catch capability regression.
7. Common Pitfalls
- Replacing scenario evaluation with a single leaderboard.
- Measuring only average latency while ignoring P95/P99 and long-context decay.
- Ignoring retry and validation costs, so the real bill far exceeds the estimate.
- Putting a hard-reasoning model on a high-concurrency online path, causing queueing and timeouts.
- Skipping utilization simulation before self-deployment and running at low load for a long time after purchase.
8. Conclusion
The value of an LLM ultimately comes down to whether it is better under specific constraints. Put quality, latency, throughput, cost, and stability in one table, set thresholds and weights per task category, and keep calibrating through canary releases and regression runs—that is a reproducible engineering method. For most teams the pragmatic path is: give execution tasks to a high-throughput setup with a validation gate, run ideation as batched multi-branch sampling, and give hard reasoning its own high-budget channel; decide the deployment shape from real utilization simulation results rather than rumored peak numbers.
