AI Coding Benchmarks Update: The Trade-off Between Long-Horizon Capability and Cost

    This article reviews a new round of AI coding benchmark results focused on long-horizon mobile app development tasks, and explains why pass rate, average completion, runtime, and cost per run must be evaluated together. It breaks down what the gap between completion and pass rate reveals about finishing ability, why long runtimes create process bottlenecks, and how to normalize cost by successful delivery. It then outlines a low-cost method for building an in-house benchmark with isolated environments, automated acceptance gates, and a sample evaluation function, followed by a scenario-based selection framework and the engineering guardrails needed to run AI coding agents safely.

    1. What the Update Signals: From “Writing Correct Code” to “Delivering Engineering”

    A platform development team recently published a batch of AI coding benchmark results targeting mobile application development scenarios, covering several mainstream coding assistants and agent frameworks. Unlike earlier evaluations centered on single-file function completion, these benchmarks scale the task granularity up to “long-horizon engineering”: app creation, feature development, code migration, and app conversion, all of which require a model to keep iterating across multiple rounds of tool calls, cross-file edits, and build verification.

    In the published data, each participating solution is presented across four dimensions at once:

    • Pass rate: the share of 30 long-horizon tasks fully completed, with top solutions landing roughly in the 17%–29% range;
    • Average completion: the relative progress a task reaches, with top solutions in the 71%–82% range;
    • Average runtime: the time to finish one benchmark run, spanning roughly 12 to 27 hours;
    • Cost per run: from single-digit dollars to more than $300, a difference of two orders of magnitude.

    The real value of these numbers is not the ranking. For the first time, capability and cost sit in the same table. In engineering practice, a solution with a high pass rate but a 27-hour runtime and a $300 cost per run serves a completely different purpose than one with a slightly lower pass rate, a 12-hour runtime, and a cost under $10.

    2. Why the Four Metrics Must Be Read Together

    2.1 The Gap Between Pass Rate and Completion Exposes Finishing Ability

    High completion paired with a low pass rate means the model can push a project to a state that “looks nearly done” but repeatedly stalls on the final build passing, edge-case handling, or resource adaptation. In long-horizon tasks, these failures are the most expensive: a person has already spent the waiting time and still gets no deliverable. So the average completion of failed tasks should be tracked separately. If failed samples consistently sit above 80%, the weak spot is the verification and repair loop, not requirement understanding.

    2.2 Runtime Is Not a Linear Cost but a Process Bottleneck

    A run that takes a dozen-plus hours forces the task to be asynchronous: submission, polling, rollback, and human takeover all need supporting mechanisms. The longer the runtime, the larger the sunk cost when requirements change, and the harder it is to fit into a daily CI pipeline.

    2.3 Cost Must Be Amortized by Effective Delivery

    Cost per run divided by the number of passed tasks is the comparable unit cost of delivery. A rough conversion of the published data puts the cost per successful task of a long-runtime solution at tens of times that of a short-runtime one. Add human review and rework time, and the gap widens further.

    2.4 The Agent Framework Is a Hidden Variable

    The same model mounted on different agent frameworks will differ in tool-call strategy, context management, and retry behavior, so results naturally differ. A cross-comparison must fix the framework and version, otherwise the conclusions are not reproducible.

    3. A Reusable Evaluation Method: Turn the Leaderboard Into Your Own Benchmark

    Instead of picking tools by watching rankings, teams are advised to build a small, low-cost in-house benchmark:

    1. Task set construction: pull 20–30 real tasks from historical requirements, covering the four categories of new build, feature iteration, migration, and conversion, each with an acceptance script that can be judged automatically.
    2. Environment isolation: assign an independent branch and an independent build environment to each run to avoid cache and dependency contamination.
    3. Metric collection: record pass rate, completion, runtime, and cost together, plus the number of human takeovers.
    4. Automated judgment: use build success, passing unit tests, and no new static-check warnings as hard gates.

    Illustrative judgment logic:

    1. def evaluate(task, run):
    2. hard_gates = [
    3. run.build_success, # build must pass
    4. run.unit_tests_passed, # unit tests must pass
    5. not run.new_lint_errors, # no new static-check errors
    6. ]
    7. if not all(hard_gates):
    8. return {"passed": False, "completion": run.completion}
    9. return {
    10. "passed": True,
    11. "completion": run.completion,
    12. "cost_per_pass": run.cost / max(run.passed_count, 1),
    13. }

    4. A Selection Framework: Match the Scenario, Not a Single Ranking

    • Budget- and latency-sensitive: prefer low-runtime, low-cost solutions for bulk boilerplate generation, script writing, and filling in unit tests, where failures can be taken over quickly by a human.
    • Long-horizon hard problems: use high-completion solutions where requirements are stable, acceptance criteria are clear, and asynchronous waiting is acceptable, but pair them with checkpoints and a rollback strategy.
    • Hybrid strategy: tier tasks by how easily they can be judged automatically. Send clearly judgeable tasks to low-cost solutions at high frequency, and ambiguous ones to high-capability solutions at low frequency.

    Engineering guardrails are equally non-negotiable: no automatic writes to high-risk directories, all changes must go through code review, sensitive information must be masked in prompts and logs, and every automated change must keep a revertible commit.

    5. Turning Capability Into a Platform Practice

    To carry this kind of AI coding capability at the organizational level over the long term, several types of general infrastructure are usually needed: a container platform to provide isolated and reproducible build environments, object storage to archive task artifacts and run logs, a message queue for asynchronous scheduling and peak shaving of long-running tasks, and a logging service with monitoring and alerting to track failure rates and cost curves. Baidu AI Cloud offers corresponding capabilities in these general categories and can serve as a reference foundation for teams building an in-house evaluation and scheduling system.

    6. Conclusion

    The point of a leaderboard is to provide a sense of scale, not an answer. Three things ultimately determine real-world results: whether tasks can be accepted automatically, whether the process can absorb long runtimes, and whether cost is amortized by effective delivery. Once those three are engineered, tool selection shifts from chasing rankings to a reproducible, auditable internal experiment.