Three-Dimensional LLM Evaluation: Quality, Latency, and Cost
Why do new model generations often feel no different in daily use? This article breaks LLM selection into three independently verifiable dimensions—output completeness, delivery latency, and total cost per task—and explains how ceiling effects, inconsistent benchmarks, and single-metric testing hide real differences. It includes estimation logic for latency, a cost formula, a practical evaluation method, a sample routing strategy, and common pitfalls to avoid.
1. Why “It Feels the Same” Is the Most Common Evaluation Result
When model capabilities iterate quickly, many teams report the same experience: after switching to a new generation, everyday tasks feel almost unchanged, but the bill and the waiting time have changed. This is not surprising, for three reasons:
- Task difficulty is unevenly distributed. A large share of everyday development requests are low-difficulty tasks (completion, rewriting, formatting, explaining errors) that any mainstream model tier can handle, so generational differences are masked by a ceiling effect.
- Evaluation criteria are inconsistent. Benchmarks differ in their question sets, scoring methods, and whether tool calls are allowed. Comparing across benchmarks is like comparing two rulers with different scales.
- Only quality was measured. Real delivery is also constrained by “how much can be written in one pass,” “how much is said in one turn,” and “what the unit price is”—and these three often do not move in step with quality.
So the rational approach is not to ask “which model is stronger,” but to split selection into three questions that can be checked independently: is the output good enough, how long is the wait, and what is the total cost.
2. The Three-Dimensional Evaluation Framework
2.1 Dimension 1: Output Completeness
Completeness measures “how far a single delivery is from being usable.” Use verifiable layered metrics rather than a single overall score:
- First-pass acceptance rate: the share of output that can be merged without human edits;
- Rework rounds: how many conversation turns are needed on average to reach a usable state;
- Sub-metric breakdown: separate scores for correctness, maintainability, test coverage, security, and so on;
- Shared-benchmark win/loss: compare win/loss only on the same question set that both sides can run, avoiding noise from differing question difficulty.
Key engineering lesson: when overall scores are close, look at the sub-metric structure. If two candidates differ by only two or three percentage points overall, but one is clearly behind on security, then in scenarios involving permissions, keys, or external input, that gap is amplified into a difference in incident rates.
2.2 Dimension 2: Delivery Latency
Latency is not “typing speed,” but two limits that are easy to overlook:
- Single-output length cap: assume the deliverable is about 200K tokens. If the single-output cap is 128K, it takes two segments stitched together; if it is 1.05M, it can be written in one pass. Stitching adds an extra round trip, repeated context carrying, and the risk of inconsistency at the seam.
- Answer length per turn: some models habitually produce very long answers, with per-turn token counts reaching several times the median. This directly amplifies latency and cost, and also increases the human reading burden.
An illustrative latency estimation logic:
def estimate_latency(tokens_out, single_output_cap, tokens_per_sec, rounds):# How many segments are needed to finishsegments = math.ceil(tokens_out / single_output_cap)# Each segment must carry the context again; simplified here as a fixed overheadoverhead = (segments - 1) * CONTEXT_REPLAY_TOKENStotal_out = tokens_out + overhead + rounds * REPLY_OVERHEAD_TOKENSreturn segments, total_out / tokens_per_sec
Conclusion: for long-context, large-volume generation tasks, the single-output cap often affects delivery time more than being “a little smarter.”
2.3 Dimension 3: Invocation Cost
Cost should be calculated as the “expected total spend to complete one task,” not the unit price:
Expected cost = (input tokens + context replay tokens) × input price+ (output tokens + redundant explanation tokens) × output price+ rework rounds × cost per round- discount from cache hits
There are three levers here: the list-price multiplier, the cached-input discount, and output amplification from being “verbose.” When two candidates happen to have the same multiplier across input, output, and cache prices (for example, 4x), the cost ranking is determined almost entirely by that multiplier, and a small quality lead is hard to offset.
3. Putting the Three Dimensions Back into Plain Words
Taken together, a typical conclusion looks like this: candidate A leads slightly on overall completeness (about 2%–3%) and wins 3:1 across four shared benchmarks, but the only metric where it is overtaken is security; candidate B has a single-output cap about 8x higher and finishes long tasks in one pass; candidate C’s list price is only one quarter of A’s, but it says more per turn.
Selection then becomes a budget allocation problem:
- Quality first: high-value, low-frequency, high-cost-of-error tasks (architecture design, complex refactoring, security-critical code) go to the option with better completeness and security;
- Cost first: high-frequency, low-difficulty, automatically verifiable tasks (completion, formatting, comments) go to the cheaper option with a large one-pass output length;
- Hybrid routing: splitting traffic by task difficulty within the same pipeline is the most common production form.
4. A Practical Evaluation Method
- Build your own question set: sample 100–200 items from real historical requirements, covering low, medium, and high difficulty, with fixed inputs and acceptance criteria.
- Run with consistent criteria: unify temperature, unify whether tool calls are allowed, unify context length, and record first-pass acceptance rate and rework rounds.
- Log three raw data points: output tokens, actual number of segments, and cache hit status, for auditing the bill.
- Gate security separately: use cases involving external input, permissions, or keys must be listed on their own and not averaged into the overall score.
- Roll out with a small canary: validate with 5%–10% of traffic first, then ramp up gradually.
An illustrative routing strategy:
def route(task):if task.risk == "high" or task.difficulty >= 3:return "primary" # Quality and security firstif task.output_tokens > SINGLE_CAP_LOW:return "long_context" # Single-output cap firstreturn "economy" # Cost first
5. Common Pitfalls
- Looking only at the overall score: when overall scores are close, sub-metrics and security are the dividing line.
- Ignoring the output cap: long tasks are forced into segments, and latency and inconsistency risk rise at the same time.
- Using unit price instead of total cost: a verbose model can multiply output costs several times over.
- Switching everything at once: without a canary and rollback, problems get amplified by traffic.
6. Conclusion
The gains from a generational upgrade really are “unnoticeable” on low-difficulty tasks; the real differences show up in long-output, high-security, and high-frequency scenarios. Breaking quality, latency, and cost into checkable numbers, then combining them with a routing strategy, is what makes selection a controllable engineering decision. If you need to host model services, logs and monitoring alerts, and elastic compute in one place, you can build the evaluation and canary pipeline on the relevant general product categories from Baidu AI Cloud, bringing selection back from “feeling” to “data.”
