Understanding End-to-End Coding Benchmarks: Beyond Single-Function Accuracy

    This article explains why traditional code evaluations fall short and introduces an end-to-end coding capability benchmark that measures how models perform inside realistic local development environments. It covers the core design elements, metric definitions such as pass rate, accuracy by thinking budget, and output cost, plus practical guidance on building a repeatable evaluation pipeline and avoiding common pitfalls.

    1. Why Traditional Code Evaluation Is Not Enough

    Single-function completion and the accuracy on isolated problems only reflect how a model performs on “fragment-level” tasks. Everyday software development looks very different: requirements are vague, code is spread across multiple files, build and test pipelines already exist, and acceptance criteria are buried in project conventions. When developers use AI coding tools, whether the tool feels “good to use” depends on whether the model can finish a task under existing engineering constraints, not on whether it can produce a nice-looking snippet.

    This is why a new evaluation approach has emerged: place the model in a complex local development environment, run end-to-end tasks across several thinking budgets, and measure overall capability in a way that closely matches real usage. This article abstracts that approach as an “end-to-end coding capability benchmark.” It measures the holistic experience rather than a single-point score.

    2. Core Design Elements of the Benchmark

    • Environment fidelity: real directory structures, dependency versions, build scripts, existing tests, and code style conventions. The closer the environment is to a real repository, the more transferable the conclusions.
    • Task closure: a task must cover six stages—understanding, locating, modifying, running, fixing, and acceptance. A task without acceptance cannot be judged as complete.
    • Thinking budgets: the same model performs noticeably differently under different reasoning budgets, so results must be recorded per budget instead of representing overall capability with a single setting.
    • Toolchain consistency: the way the model is paired with the AI coding tool is fixed, ensuring that comparisons reflect the combined capability rather than incidental factors.

    An illustrative task description structure (neutral pseudocode that only expresses the shape of the evaluation input):

    1. task_id: cross_file_refactor_07
    2. repo_snapshot: pinned_commit
    3. constraints:
    4. - keep_public_api_unchanged
    5. - all_existing_tests_must_pass
    6. acceptance:
    7. - command: "build && test"
    8. - expected: exit_code == 0
    9. thinking_budget: high
    10. max_output_tokens: 200000

    3. Metric Definitions: Pass Rate, Accuracy, and Output Cost

    For evaluation results to be comparable, the definitions must be stated clearly first. Three types of metrics are commonly used.

    The first is the overall task pass rate: the share of tasks that run through completely and are confirmed by the acceptance script. This is the closest to the developer’s real experience. The second is accuracy by budget, used to observe the capability curve of a model under different thinking budgets. The third is resource consumption, mainly the average output size and time per task.

    One set of public test results shows that, on the same benchmark, a model paired with an in-house AI coding tool achieved an overall task pass rate about 2.39 percentage points higher than when paired with a common industry solution, with the advantage concentrated on complex tasks that require cross-file, cross-stage collaboration and ultimately pass acceptance. At a higher thinking budget, a model reached about 31.4% accuracy, above the top budget of the comparison solution at about 29.5%, while averaging about 50,000 tokens of output per task—clearly lower than the comparison solution’s roughly 120,000 tokens. The lightweight version performed on par with the flagship solution in this experience-based evaluation.

    The value of these numbers lies not in the ranking but in two patterns: first, complex collaborative tasks are the dividing line for capability; second, less output often means higher instruction adherence and less ineffective exploration, which is where the cost advantage comes from.

    4. Putting the Evaluation Engineering into Practice

    It is recommended to build the evaluation as a repeatable pipeline rather than a one-off script:

    1. Pin the repository snapshot to a specific commit and cache dependencies offline to avoid network fluctuations contaminating results.
    2. Use a container platform to standardize the execution environment, running each task in a clean sandbox and reclaiming it afterward.
    3. Collect build and test logs centrally in a logging service, with monitoring and alerting to observe failure and timeout rates.
    4. Store evaluation artifacts together with the repository snapshot in object storage to ensure traceability and recomputation.
    5. Use a message queue for task distribution and concurrency control to prevent long-running tasks from competing for resources.

    On Baidu AI Cloud, these capabilities can be carried by general product categories such as the container platform, logging service, monitoring and alerting, object storage, and message queue, upgrading evaluation from “running a few times manually” into a sustainable engineering asset.

    5. Common Pitfalls and Practical Recommendations

    • Looking only at the total score and not the per-budget breakdown: a high score at a large budget may mask insufficient usability at a small budget.
    • Ignoring the quality of the acceptance script: weak acceptance makes “passing” meaningless, so it is advisable to keep manual spot checks as well.
    • Treating output length as a capability signal: it should be read together with pass rate, since length alone can lead to misjudgment.
    • A single-type task set: it needs to cover multiple forms such as bug fixing, cross-file refactoring, dependency upgrades, and script and configuration tasks.

    In practice, it is recommended to first build an initial task set from 30 to 50 real historical requirements internally, get the pipeline running, then expand it gradually, and review quarterly whether the tasks still stay close to the current technology stack.