AI Coding Benchmarks on Mobile: Long-Horizon Task Pass Rates and Engineering Trade-offs

    A new set of AI coding benchmark results, built around real engineering tasks on a mobile operating system, compares agent approaches across pass rate, average completion, wall-clock time, and cost per run. This article explains how to read those four metrics together, why high completion comes with long runtimes and higher spend, and how teams can tier their task policies, add guardrails, and build reproducible evaluation pipelines.

    1. What the Benchmark Update Actually Shows

    An official developer account for a mobile operating system recently published a batch of AI coding benchmark results aimed at real engineering work, covering four scenario types: app creation, feature development, code migration, and app conversion. Unlike earlier benchmarks that only measured whether code would run, this generation stretches each evaluation unit into a long-horizon task that requires multiple rounds of tool calls, cross-file edits, and continuous verification. As a result, the outcomes sit closer to the real distribution of day-to-day team delivery.

    The published data shows a clear split among the evaluated agent approaches. One group passed roughly 24% to 29% of 30 long-horizon tasks, with average completion above 80%, but average elapsed time close to or above 27 hours and a cost of about $317 per benchmark run. Another group passed about 17% of tasks, with average completion around 71%, average elapsed time around 12 hours, and a cost under $10 per run. The two differ by an order of magnitude in cost, yet the pass-rate gap is only a few percentage points. That contrast is the core engineering trade-off this article examines.

    One caveat matters: a benchmark score is not a product capability sheet. It measures the success rate of completing tasks under a given agent framework, with given tool permissions and a given verification loop. Any cross-approach comparison therefore has to look at all four metrics at once rather than cherry-picking the pass rate.

    2. What Each of the Four Metrics Means and How to Read It

    • Pass rate: the share of tasks judged to fully meet the acceptance criteria. It is an end-to-end outcome metric and is extremely sensitive to how strict verification is.
    • Average completion: the weighted share of task steps or acceptance points completed. It reflects how close a run came to success and is useful for evaluating incremental gains.
    • Average elapsed time: wall-clock time from task start to convergence, including compilation, testing, failed retries, and waiting for human intervention.
    • Cost per run: the resource and call overhead of one complete benchmark run, and a direct input for capacity planning and budget approval.

    The right way to read these numbers is a two- or three-dimensional joint judgment. High pass rate paired with high time and high cost indicates an approach biased toward heavy verification and long chains. Low time and low cost paired with moderate completion indicates an approach biased toward fast convergence and batch processing. Neither is superior; they fit different delivery cadences.

    3. The Engineering Trade-offs Behind High Completion and Long Runtimes

    First, the depth of the verification loop drives elapsed time. Long-horizon tasks repeatedly run builds, unit tests, static checks, and UI-level verification, and each round can trigger dependency resolution and incremental compilation. Time is consumed by verification rather than by coding.

    Second, context reconstruction cost grows with task length. Cross-file migration requires continuously maintaining symbol tables, dependency graphs, and convention constraints; the longer the context, the more expensive retrieval and compression strategies become.

    Third, failure recovery strategy affects tail latency. Once a long chain hits a compile error or flaky test, retries and rollbacks push the average up sharply, and a few hard tasks typically account for most of the elapsed time.

    Fourth, cost structure is determined jointly by the number of calls and verification resources. High-completion approaches usually trade more rounds of tool calls for stability, so cost grows linearly or even super-linearly.

    4. A Selection and Optimization Framework for Teams

    For selection, start with a small task set and evaluate it in tiers. Group tasks into single-file changes, cross-module features, and full-app migrations, and measure all four metrics for each tier instead of deciding on a single average. Teams sensitive to budget and response time can route batch, low-risk work to the low-time, low-cost approach first; high-value, compliance-heavy scenarios can then bring in the high-completion approach as a fallback.

    For optimization, there are three entry points. First, narrow the verification scope by using change-impact analysis to trim unnecessary full builds. Second, improve context quality by using retrieval augmentation and structured summaries to cut wasted reads. Third, set budget and timeout guardrails so tail tasks cannot drain resources. An illustrative policy configuration looks like this:

    1. task_policy:
    2. tiers:
    3. - name: quick
    4. max_rounds: 6
    5. timeout_minutes: 30
    6. verification: changed-files-only
    7. - name: deep
    8. max_rounds: 40
    9. timeout_minutes: 1800
    10. verification: full-build-and-test
    11. guardrails:
    12. max_cost_per_task: 5.0
    13. retry_on_flaky: 1
    14. escalate_to_human_after: 2

    On the infrastructure side, the common practice is to run builds and tests on a container platform for isolation and cache reuse, store build artifacts and task snapshots in object storage, use a message queue to smooth out peaks and schedule long tasks, and rely on logging and monitoring with alerts to observe the distribution of elapsed times and cluster failures. Baidu AI Cloud is typically used in these scenarios to carry the generic capabilities above, and teams can build a reproducible evaluation pipeline on that basis.

    5. Key Practices for Reproducible Evaluation

    First, fix the evaluation environment by pinning dependency versions, device form factors, and network conditions to reduce variance. Second, keep complete traces that record every round of tool calls, failure reasons, and elapsed time so results can be attributed. Third, have two people independently review acceptance decisions to reduce false passes. Fourth, establish a regression baseline and rerun the tiered task set after every model or agent framework change, watching which direction the four metrics drift.

    6. Conclusion

    The value of a benchmark is not the ranking. It is that putting pass rate, completion, time, and cost in one table forces teams to make engineering trade-offs explicitly. For most organizations, the safer path is tiered usage: cover the long tail with a low-cost, fast-converging approach, tackle the critical path with a high-completion approach, and use guardrails plus observability to keep uncertainty contained.