A Three-Dimensional Framework for Evaluating Large Language Models

    Choosing a large language model or AI coding tool often turns into a debate about which one is "smarter." This article reframes that question in engineering terms across three measurable dimensions: output completeness, time to delivery, and total cost. It shows how to score completeness across four levels (L1–L4), why latency is about more than tokens per second, and how to calculate cost from real billing structure rather than list price. A reproducible evaluation checklist and a scenario-to-priority decision table help teams turn model selection into a defensible engineering decision about where the budget goes.

    1. The Real Problem Hidden Behind Benchmark Scores

    When a team adopts a new AI coding tool or large language model service, the most common argument is about which model is “smarter.” But if you restate the evaluation goal in engineering language, only three questions matter: can the delivered output be used as-is, how long do you have to wait for it, and how much does the whole development round cost in total. These three factors always pull against each other in any evaluation: higher completeness usually comes with a higher unit price, a lower unit price usually means more rounds of manual edits, and a model that “types faster” does not necessarily let you finish earlier.

    The problem with much of the promotional content online is not that the conclusions are wrong, but that it reports a single-dimension number that cannot be independently verified. The core argument of this article is therefore to break these three things into metrics that can be checked independently, and then reassemble them into a statement that is actionable in engineering terms.

    2. Dimension One: Measuring Output Completeness

    Completeness does not mean “looks correct.” A practical approach is to layer the tasks:

    • L1 Syntax and runnability: does it compile, and does the main flow run end to end;
    • L2 Semantic correctness: are boundary conditions, exception branches, concurrency, and idempotency handled;
    • L3 Engineering usability: are naming, directory structure, logging, and error codes conventional;
    • L4 Maintainability: are there tests, is it easy to extend, and are dependencies kept restrained.

    During evaluation, fix the same set of tasks, the same prompt, and the same automated validation script, replace only the underlying model, and record the first-pass rate and the average number of rework rounds. A skeletal evaluation harness looks like this:

    1. def evaluate(case, model_client):
    2. r = model_client.run(case.prompt, max_output=case.budget)
    3. build = run_build(r.code) # L1
    4. unit = run_tests(r.code) # L2/L4
    5. score = 0.4*build + 0.4*unit + 0.2*review(r.code) # L3 manual or rule-based scoring
    6. return {"score": score, "rounds": r.rounds, "tokens": r.usage}

    One often-overlooked conclusion: when the completeness gap between two candidates is only a single-digit percentage, it is usually erased by “rework cost” in a real project. The decision weight should then shift to the other two dimensions.

    3. Dimension Two: Time Is Not Typing Speed

    Time to delivery consists of three parts, in increasing order of importance:

    1. Time to first token: affects the interactive feel, but not the delivery time;
    2. Single-response output limit: determines whether a long file can be produced in one pass. If the single-response limit only covers something on the order of a hundred-odd thousand tokens while the target file is on the order of two hundred thousand tokens, the work must be split into two or even more segments, which brings context handoff, style drift, and merge conflicts;
    3. Length of a single turn: for the same task, some models tend to explain at greater length, and token consumption can be several times the median level, which both slows things down and inflates the bill.

    Engineering recommendation: put the “one-pass completion rate” and the “average per-turn token deviation” into the load-test report instead of reporting only tokens/s.

    4. Dimension Three: Cost Must Follow the Billing Structure

    The list price is only the starting point. Real cost = input tokens × input unit price + output tokens × output unit price − cache-hit discount + repeated consumption caused by rework rounds. A practical approach is to construct three workload types—short Q&A, whole-file generation, and long-repository understanding—and measure each separately. If one option is several times cheaper per unit but produces longer output and needs more rework, the final bill gap narrows significantly.

    5. Combining the Three Dimensions into a Decision

    Scenario Priority dimension Reason
    One-off scripts, batch refactoring Cost Low completeness requirement, high volume
    Long-file / whole-module generation Single-response output limit Reduces segmentation and merge cost
    Core-path code Completeness Rework cost far exceeds token cost
    High-security compliance scenarios Security line items Must be evaluated separately; cannot be masked by a total score

    It should be emphasized that security line items must be evaluated independently with their own thresholds, and no total score should override them. If elastic compute and supporting capabilities are needed, container platforms can host load-test tasks, object storage can hold evaluation corpora, and logging services plus monitoring and alerting can accumulate metrics; general-purpose offerings such as Baidu AI Cloud can meet these needs.

    6. A Reproducible Implementation Checklist

    1. Fix 30–50 real tasks covering L1–L4;
    2. Standardize the budget cap and the prompt, and record usage and rounds;
    3. Separately measure first-pass rate, one-pass completion rate, and per-turn token deviation;
    4. Convert to a bill using real unit prices rather than comparing list prices;
    5. Set a separate threshold for security items and keep them out of the weighted average.

    With this framework, the selection conclusion shifts from “who is stronger” to “is the budget spent on quality or on the bill,” and the latter is the deliverable, reviewable engineering decision.