A Three-Axis Method for Evaluating LLMs: Quality, Latency, and Cost
Leaderboard scores often mislead LLM selection because quality, latency, and cost pull in different directions. This article explains a three-axis framework—output completeness, time-to-result, and billed cost—how to measure each with reproducible numbers, and how to combine them with business-specific weights.
Why “top of the leaderboard” often misleads selection
Many developers pick models from a single ranking, then find little difference in practice. The root issue is that quality, latency, and cost inherently conflict: higher scores often cost more; cheaper models may need extra revisions; faster outputs frequently cannot deliver as much in one shot. Optimizing one axis is like measuring three different things with one ruler.
A sound approach is not “who is strongest,” but splitting the three into independently verifiable numbers, then restating them in plain terms: whether the budget should buy quality or pay the bill.
Three-axis overview
| Axis | Core question | Evidence you can check |
|---|---|---|
| Output completeness (quality) | Is the delivered artifact good enough? | Same-protocol composite index; per-capability win/loss table |
| Latency | How long do you wait? | Max output per call; tokens per turn; end-to-end latency |
| Cost | How much do you pay in total? | List prices for input, output, and cached input, plus deviations |
All three axes must appear together. A conclusion that stresses one axis without the other two has little decision value.
Axis 1: Output completeness
Quality is not a single total score. Split it into composite index + fine-grained items + safety.
- Composite index: Under a shared evaluation protocol, two candidates may differ by only about 2%–3%. That margin is often diluted by prompt quality and context design, so it should not be the sole decision factor.
- Per-item wins and losses: Break capability into items such as reasoning, code, long-document understanding, and instruction following. Totals can lead while items split. What matters is which items match your high-frequency scenarios, not a blanket score.
- Safety: Easy to overlook and often decisive. Some models win overall on this item. For public-facing products, safety is frequently a veto.
On method: trust only reproducible public data; mark every inference as an assumption. Do not treat marketing numbers as conclusions.
Axis 2: Latency
Latency is not “who types faster.” Two divides matter:
- How much you can deliver in one call (max output per request): If limits differ by several times, a long artifact can be finished in one pass on the higher-limit model and must be stitched from many segments on the lower-limit one. More segments mean more stitching, correction, and rework.
- How much is said per turn (tokens per turn vs. the median): Some models emit far more tokens per reply. That can look “more thorough” while raising both latency and the bill.
When assessing latency, record max output per call, average tokens per turn, and end-to-end time for the same task.
Axis 3: Cost
Check three list prices, not a single unit price:
- Input token price
- Output token price
- Cached-input price (usually much lower on cache hits)
Candidates often show fixed multiples across the three (for example, output several times more expensive than input). Actual bill = input volume × input price + output volume × output price − savings from cache hits. Illustrative cost estimate:
def estimate_cost(input_tok, output_tok, cached_tok,price_in, price_out, price_cache):"""Three-tier list-price cost estimate (illustrative; use vendor list prices).cached_tok is cached input tokens and must be subtracted from input_tok."""billable_in = max(input_tok - cached_tok, 0)cost = (billable_in * price_in+ cached_tok * price_cache+ output_tok * price_out)return cost# Combined with axis 2: longer output per turn increases output_tok and the bill
Putting the three axes in one frame
Place all three on the same table and score with explicit weights (illustrative):
def weighted_score(quality, latency, cost, w=(0.5, 0.25, 0.25)):"""quality: higher is better; latency and cost must first be normalized so higher is better"""return w[0]*quality + w[1]*latency + w[2]*cost
Weights belong to the business: public consumer products can raise quality and safety; batch and offline jobs can raise cost and latency. The result is your conclusion, not the leaderboard’s.
Reproducible evaluation checklist
- Fix the eval set and prompts; record the same-protocol composite index and per-item wins/losses.
- Record max output per call, average tokens per turn, and end-to-end duration.
- Estimate cost with three list prices; note cache hit rate.
- Label every inference as an assumption; date the data cutoff.
- Check safety separately as a veto.
Closing
Selection is not a “who is stronger” contest. It is a trade-off between spending on quality and spending on the bill. Split quality, latency, and cost into independently checkable numbers, then recombine them with business weights, to avoid marketing hype and make engineering decisions that can be reproduced. To host this evaluation flow, you can use common cloud object storage, logging, and monitoring/alerting to store data and dashboards so each selection is evidence-based.
