AI Coding Benchmark Update: The Capability and Cost Trade-off on Long-Horizon Tasks

    A new round of results from a coding benchmark built around mobile app development shows how far AI agents still are from solving long-horizon engineering work, and how sharply capability, latency, and budget trade off against each other. This article breaks down what the four reported metrics actually mean, why high completion tends to come with long runtimes and high cost, and how to turn public rankings into a repeatable evaluation of your own. It also covers practical cost control and task orchestration patterns, common pitfalls to avoid, and the compliance boundary to respect before sending repository content to external inference services.

    1. What the New Benchmark Results Tell Us

    A coding benchmark designed for mobile application development has published a new round of results. The participants are several general-purpose large models paired with different AI coding tools. The benchmark does not test single-file algorithm puzzles. Instead, it places models in a realistic engineering environment of 30 long-horizon tasks: creating an app, building features, migrating code, and converting between platforms. The agent has to read the codebase, modify files, run builds, inspect errors, and iterate on its own.

    The value of this kind of evaluation is that it merges “model capability” and “agent framework capability” into a single observable engineering outcome. The four metrics it exposes — pass rate, average completion, average duration, and cost per run — form a four-dimensional trade-off space, where improving one axis usually comes at the expense of another.

    In the public data, the leading solutions cluster at a pass rate of 17%–29% and an average completion of 71%–83%. Duration ranges from 12 to 27 hours, while cost per run spans from single-digit dollars to the order of $300. These numbers say two things: long-horizon tasks remain far from solved, and the spread in cost and duration can reach one to two orders of magnitude.

    2. What the Four Metrics Mean in Practice

    Pass rate is the hard gate: the share of tasks that pass full verification. It is also the easiest metric to misread. With only 30 samples, the gap between 29% and 17% is roughly four tasks, so statistical noise is not negligible and differences beyond the decimal point should not be treated as a verdict on capability.

    Average completion measures how far short a run falls, turning partial success into a continuous score. High completion paired with a low pass rate typically means the solution gets most of the changes done but keeps failing at the final build check, edge-case adaptation, or migration wrap-up. That “high completion, low pass rate” combination is actually friendlier to teams taking over manually, because the remaining work is easy to locate.

    Average duration reflects end-to-end latency. The difference between a dozen hours and twenty-something hours decides whether you get results the same day in interactive development, or whether a run fits into an overnight batch window in a pipeline.

    Cost per run is determined by model calls, tool executions, and retries together. High-completion solutions usually involve more iterations and longer contexts, which naturally pushes cost up; low-cost solutions typically trade speed for more aggressive pruning and fewer retries.

    3. Why High Completion Comes With High Duration

    The loop an agent runs to solve a long-horizon task is fixed: observe context → plan → call tools → verify → correct. Duration and cost are consumed mainly in three places.

    The first is context bloat. Repository-level tasks require repeated retrieval and re-reading of files, so token consumption grows roughly linearly with the number of turns, and each turn has to rebuild an understanding of the codebase.

    The second is retrying after failure. Build failures and failing tests trigger multiple repair rounds, and each round is a full read–modify–verify cycle. Long-tail tasks show this most clearly.

    The third is verification cost. A reliable pass verdict depends on actually running builds and tests, and preparing the environment takes time. Skipping verification speeds things up significantly, but the pass rate loses credibility.

    So “high completion + long duration + high cost” is not a defect; it is a deliberate choice to spend budget in exchange for certainty. “Low completion + short duration + low cost” leaves the uncertainty to humans. The first question in selection is not which option is stronger, but which currency your team is willing to pay with.

    4. A Practical Selection Method

    Treat benchmark data as a prior, not a conclusion, and run a small-scale re-test on your own task set. A workable evaluation skeleton (illustrative):

    1. # Build a small evaluation set from your own repository tasks;
    2. # metric definitions must align with the public benchmark
    3. tasks = load_tasks("repo_tasks.yaml") # each item has an initial state, a verification script, and a timeout limit
    4. def evaluate(agent, tasks, max_turns=200, timeout_hours=24):
    5. passed, scores, costs, durations = 0, [], [], []
    6. for t in tasks:
    7. t.reset()
    8. r = agent.run(t, max_turns=max_turns, timeout=timeout_hours)
    9. ok = t.verify() # passing build + tests is the only hard criterion
    10. passed += int(ok)
    11. scores.append(t.completion()) # completion: share of acceptance points satisfied
    12. costs.append(r.cost_usd)
    13. durations.append(r.hours)
    14. return {
    15. "pass_rate": passed / len(tasks),
    16. "completion": sum(scores) / len(scores),
    17. "cost": sum(costs),
    18. "p50_hours": median(durations),
    19. }

    When re-testing, fix three definitions: acceptance is based on automated builds and tests; set a per-task timeout and a maximum turn count so long-tail tasks cannot drain the budget; and record the full trace of every run so failures can be attributed to planning, editing, or verification.

    5. Cost Control and Task Orchestration

    The key to cost governance is spending on what is necessary. Viable strategies include: tiered scheduling, using a low-cost solution first for codebase understanding, impact analysis, and a draft change set, then calling a higher-capability solution to finish high-value tasks; budget guardrails, setting cost and latency limits per task and aborting to human handoff once exceeded; cache reuse, carrying retrieval results, dependency analysis, and build artifacts across turns to cut repeated context; and parallelism with checkpoints, running independent tasks in parallel and saving checkpoints for long tasks so a failure resumes from the checkpoint instead of restarting from scratch.

    On the platform side, these capabilities are typically carried by general-purpose cloud services: a container platform provides isolated execution environments, object storage keeps traces and artifacts, a message queue handles task distribution and peak shaving, and logging plus monitoring and alerting cover cost, latency, and failure rate. Putting evaluation and day-to-day development under the same observability system is what lets you keep calibrating your selection decisions.

    6. Common Pitfalls

    One is looking only at pass rate and ignoring the handoff-ability that completion provides. Two is treating small differences across 30 samples as a stable conclusion. Three is buying a fake pass rate with unverified “speed.” Four is handing every task to a single solution at once, giving up the cost elasticity that tiering provides. Five is ignoring the compliance boundary for data and code by sending repository content that should not leave your environment to an external inference service — this should be resolved at the architecture design stage through private deployment or a redaction process.

    7. Conclusion

    The real information in the new round of rankings is not the ordering but the fact that it quantifies the cost curve of long-horizon engineering tasks: capability, latency, and budget must be traded off explicitly. For developers, the right approach is to start from the public results, re-test with your own task set, establish an evaluation standard centered on automated acceptance, and then hard-code cost constraints into the development process with tiered scheduling and budget guardrails. If needed, Baidu AI Cloud can provide general-purpose support in containerized execution environments, logging and monitoring, and data compliance to help teams run this evaluation and governance setup reliably.