How to Evaluate LLMs: Quality, Latency, and Cost

    Choosing a large language model based on a quick trial often leads to expensive misjudgments. This article presents a three-dimensional evaluation framework that separates quality, latency, and cost into independently verifiable metrics. It covers a six-point rubric for measuring output completeness, why per-task output limits and verbosity affect delivery time, how to calculate task-level cost instead of list price, and a tiered routing strategy that assigns high-cost models only to critical tasks. A storyboard-based prompt design for testing long-context and one-shot performance is also included.

    1. Why “It Feels About the Same” Is the Most Expensive Misjudgment

    The most common sentence in a model selection review is: “I tried the new version, and it’s about the same as the previous one.” Three traps usually hide behind that sentence. First, the test sample is too small and covers only the task type the reviewer knows best. Second, only the readability of the final answer is checked, not whether the output is actually deliverable. Third, waiting time and billing are never placed in the same comparison table.

    The rigorous approach is to break “how good, how long, how much” into three sets of independent, individually verifiable numbers, then combine them back into a plain-language conclusion. This article does not focus on any specific product. It discusses a general method for evaluating LLM capabilities, applicable to selection decisions for AI coding tools, content generation platforms, conversational Q&A systems, and similar technical solutions.

    2. Dimension One: Quantifying Output Completeness

    Output completeness is not about writing style. It measures how many steps remain before a deliverable can be used as-is. A practical breakdown uses six scorable items:

    • Instruction following: whether format, word count, required fields, and prohibited items are strictly satisfied;
    • Structural completeness: whether storyboards, chapters, interface definitions, and similar artifacts form a closed whole with no missing sections;
    • Factual consistency: whether the output contradicts itself internally;
    • Long-context retention: whether constraints in the middle of a very long input are dropped;
    • Executability: whether code runs on the first attempt and scripts can be deployed directly;
    • Safety: whether high-risk recommendations and inappropriate content are avoided.

    Three things must stay fixed when scoring: the same task set, the same scoring rubric, and the same temperature setting. Illustrative scoring code:

    1. # Pseudocode: fix the task set and rubric to avoid "going by feel"
    2. RUBRIC = ["instruction", "structure", "consistency",
    3. "long_context", "executability", "safety"]
    4. def evaluate(model, tasks, temperature=0.0):
    5. scores = {k: [] for k in RUBRIC}
    6. for t in tasks:
    7. out = model.generate(t.prompt, temperature=temperature)
    8. for k in RUBRIC:
    9. scores[k].append(judge(k, out, t.golden))
    10. return {k: round(sum(v) / len(v), 1) for k, v in scores.items()}

    Key lesson: averaging the sub-scores tends to hide differences. When two models differ by only about 2% in overall score, the winner is actually decided by the head-to-head win rate on a shared benchmark, not by the average. If there are six sub-items and one side wins four while the other wins two, the “slight lead” is structural rather than noise.

    3. Dimension Two: Latency Is Delivery Rhythm, Not Typing Speed

    Latency is the most easily misread dimension. In real projects, waiting time consists of three parts:

    1. Time to first token: determines the interactive feel;
    2. Maximum output per request: determines how many passes a long deliverable needs;
    3. Verbosity per turn: determines how long reading, editing, and compressing will take.

    The second part is the dividing line. Suppose a deliverable requires 200K tokens. If the maximum output per request is 128K, it must be split into two passes; if it is 1.05M, it can be written in one. Splitting costs more than simply twice the time. It adds handoff overhead: context must be replayed, style must be realigned, and duplicated content between the parts must be removed manually.

    The hidden cost of the third part is even more often ignored. If a model’s token count per response is significantly above the median for its class (for example, several times higher), the same task makes it “say more,” and your reading and editing time rises accordingly. Two metrics are worth recording during evaluation:

    • First-pass yield = the share of tasks that meet the bar without a second generation;
    • Total tokens per task = all input + output + retry consumption combined.

    4. Dimension Three: Price Cost Per Completed Task, Not Per Token

    Looking only at list price leads to the wrong conclusion. The correct measure is task-level cost:

    1. Task cost = (input tokens × input price)
    2. + (output tokens × output price)
    3. + (retries × total tokens per turn)
    4. - discount from cache hits

    In the general market, input, output, and cached-input prices across model tiers often sit in integer-multiple relationships (for example, 8 vs. 2, 40 vs. 10, or 0.40 vs. 0.10, a 4x gap). When the output price gap reaches several times while the quality gap is only a single-digit percentage, large-scale batch workloads should favor the low-cost tier, reserving the high-cost tier for critical steps that must be right on the first attempt.

    A practical compromise is tiered routing:

    1. def route(task):
    2. if task.risk == "high" or task.need_one_shot:
    3. return strong_model # critical step, optimize for one-shot success
    4. return cheap_model # batch task, optimize for throughput and cost

    5. Combining the Three Dimensions into One Sentence

    Overall, selection is not about “which model is stronger.” It is about whether the budget goes into quality or into the bill. A reusable decision order:

    1. Set the safety baseline first; any option that fails safety is eliminated immediately;
    2. Check the maximum output per request for long deliverables to decide whether splitting is needed;
    3. Build the budget estimate on task-level cost rather than unit price;
    4. Finally, use the shared-benchmark win rate to confirm whether a “slight lead” is stable.

    6. Appendix: Storyboard-Style Task Design for a 75-Second Animated Short

    A shot-by-shot, second-synchronized storyboard script is a very effective test item for long-context and one-shot capability, because it stresses format constraints, timeline consistency, and visual-narration alignment at the same time. The structure can be designed as 8 shots of roughly 9 seconds each, with fixed fields:

    1. shot: 1
    2. time: "00:00-00:09"
    3. visual: "Wide shot, city skyline brightening from dark"
    4. narration: "One sentence, synchronized with the visual"
    5. transition: "hard cut"

    When scoring, focus on three checks: whether the timeline connects seamlessly, whether the narration length matches the shot duration, and whether the visual description and the narration point to the same information. This task quickly exposes models that drop constraints under long inputs, and it discriminates better than open-ended prompts.

    The conclusion is simple: only when quality, latency, and cost are placed in the same frame can “it feels about the same” become “where exactly it differs, by how much, and whether it is worth it.”