Evaluating Large Language Models: A Three-Axis Framework for Quality, Latency, and Cost
Choosing a large language model often turns into a debate between vendor benchmarks and a developer's single test that "looks no different from the previous generation." Both views can be right because they measure different things. This article breaks model performance into three independently verifiable axes—output completeness (quality), latency and throughput, and cost—and shows how to run a reproducible evaluation on your own task distribution using pass rate and effective cost as the deciding metrics.
1. Why “It Feels the Same” Is the Most Common Evaluation Illusion
Discussions about what a new generation of large language models actually improves tend to split in two directions: heavy marketing on one side, and a developer’s verdict after testing one task—“no different from the last version”—on the other. Neither judgment is necessarily wrong. They simply use different measurement baselines.
Marketing looks at average scores on composite leaderboards. Developers look at one output from one specific task at hand. The former is a statistical expectation; the latter is a single sample with very high variance. When two generations differ by only a few percent on a composite index while random variation on a single task can swing by more than ten percentage points, the subjective impression will inevitably lean toward “no difference.”
So the first job of a professional evaluation is not to rank models, but to decompose a vague notion of “stronger” into numbers that can be checked independently. Following common industry practice, this article splits real-world model performance into three axes: output completeness (quality), latency (delay and throughput), and cost (the bill). The three axes pull against each other—higher quality usually costs more, and cheaper options usually require two extra rounds of edits. The value of an evaluation is to calculate the exchange rate among the three.
2. Three Axes in One Frame: Turning “Stronger” into Verifiable Numbers
2.1 Output Completeness: Judge a Single Delivery, Not an Average Score
Output completeness measures “how far a model’s one-shot result is from being mergeable as-is.” It is not a leaderboard score; it is closer to a first-pass yield in engineering terms. A practical approach is to layer the task set by real work type, for example:
- Code generation and completion (does it compile on the first try, unit test pass rate);
- Long-document understanding and structured extraction (field recall, format compliance rate);
- Refactoring and migration (behavioral equivalence, regression test pass rate);
- Reasoning and planning (verifiability of steps, constraint satisfaction rate);
- Security-related (whether known risk patterns are introduced, whether sensitive information is leaked).
Score each item separately during evaluation, then produce a weighted composite index. One counterintuitive lesson must be emphasized here: when the lead on the composite index is small, per-item wins and losses carry more information than the composite score. For example, option A scores 57.8 overall and option B scores 56.4, a gap of about 2.5%, but A wins only four of six sub-items, with a 3:1 win-loss record on the shared benchmark, and the only sub-item where it is overtaken happens to be security (30.7 vs. 26.6). This means the selection conclusion shifts dramatically with business weights: for security-sensitive industry systems, B is actually the better fit.
2.2 Latency: The Real Dividing Line Is Not “Typing Speed”
In engineering, latency splits into three segments before the bottleneck becomes clear:
- Time to first token: determines interactive feel, affected by queuing and scheduling, with large fluctuations;
- Single-response output limit: determines “how much can be delivered in one pass,” the dividing line for long tasks;
- Length of each response: determines total token consumption and total duration.
A typical scenario: producing a complete engineering deliverable of roughly 200,000 tokens. If the single-response output limit is 128K, the work must be split into two segments with context carried over; if the limit reaches 1.05M, it can be written in one pass. The two differ by 8.2x, which in schedule terms is the difference between “done in one shot” and “segmented assembly plus manual alignment.” The hidden cost of segmented assembly is extremely high: cross-segment consistency, naming drift, duplicate definitions, and missing references all require extra verification.
Another difference is more subtle: some models use 6–11x the token count of the median model per response. They say more about the same work and look more thorough, but your waiting time and bill scale up at the same time. “Length of response” is not capability; it is a measurement basis that must be counted into cost.
2.3 Cost: Convert List Prices into “Price per Unit of Usable Output”
Cost cannot be judged by unit price alone; it must be measured as price per unit of usable output. At minimum, split it into four billing items: input, output, cached input, and the extra consumption caused by retries. A common situation is that three unit prices happen to form a fixed multiple relationship (for example, input 8 vs. 2, output 40 vs. 10, cached input 0.40 vs. 0.10, all 4x), in which case the cheaper option’s advantage is partly offset by “editing twice more.”
A reusable estimation formula:
Total cost per task ≈ (input tokens × input price + output tokens × output price+ cached input tokens × cache price) × retry roundsEffective cost = Total cost per task / first-pass yield
Putting “first-pass yield” in the denominator is the true cost from an engineering perspective. An option with slightly lower quality but 4x cheaper still has a clear advantage if its first-pass yield is only 10% lower; if it is 40% lower, the advantage disappears.
3. A Reproducible Test Method: Build Your Own Evaluation Bench in Five Steps
Neither marketing nor subjective feel is reliable. The only reliable thing is a reproducible experiment on your own business distribution.
- Build the task set: sample 100–300 real tasks from historical tickets, layer them by type, and fix the random seed and prompt templates.
- Define the judges: use tests where tests are possible; otherwise use structured validation (JSON Schema, compilation, static checks) to avoid subjective human scoring.
- Record raw three-axis data: for each sample, record time to first token, total duration, input/output/cached token counts, and retry count.
- Sample multiple times and take the distribution: run the same task at least 3–5 times, and report the median and P90 rather than a single result.
- Calculate effective cost: convert using the formula above and output a three-axis “quality–latency–cost” table.
An illustrative record structure:
{"task_id": "refactor-042","runs": [{"latency_ms": 820, "total_ms": 41200,"in": 12000, "out": 8300, "cache_in": 9000,"retries": 1, "pass": true}],"pass_rate": 0.6,"median_total_ms": 43800}
4. Decision Checklist: Spend the Budget on Quality or on the Bill
- Long deliverables, little manual assembly → prioritize single-response output limit and long-context consistency;
- Security-sensitive scenarios → set the security sub-item as high weight, and use cross-validation with two models when necessary;
- High concurrency, cost-sensitive → prioritize cache hits and per-response token length, and compress redundant prompts and output;
- Interactive coding → prioritize time to first token and first-pass yield, with cost second;
- Compliance and control → check whether data is used for training, log retention policy, and regional deployment options.
A more robust engineering practice is tiered routing: use a low-cost option for high-frequency simple requests, fall back to a high-completeness option for complex requests, and keep regressing continuously with a unified evaluation bench. If you need to handle batch jobs and archive results, you can build a pipeline with common cloud capabilities such as object storage, message queues, container platforms, logging services, and monitoring and alerting, making the evaluation itself automated and auditable.
5. Conclusion
The answer to “what exactly does the new generation improve” is not on a leaderboard, nor in one sample at hand, but in your task distribution and weight table. Put the three axes of quality, latency, and cost in one frame, and use first-pass yield and effective cost to decide. You will find that most arguments are actually budget allocation problems, not questions of whether capability exists.
