Android Development Benchmark Update: Capability vs. Cost in Long-Horizon Coding Tasks

    A cloud provider has refreshed its coding benchmark for mobile app development, placing three mainstream AI coding models on a single leaderboard for the first time. Unlike single-file function completion tests, this benchmark measures long-horizon tasks—app creation, feature development, code migration, and cross-platform conversion—across dozens of files. This article breaks down the four reported metrics (pass rate, completion level, runtime, and cost per run), explains why errors compound in long task chains, and offers a reusable framework for evaluation and model selection, including an effective cost per passed task calculation and common implementation pitfalls.

    1. What the Benchmark Update Reveals

    A cloud provider recently updated a class of coding benchmarks built for mobile application development, placing results from three mainstream AI coding models on a single table for the first time. These benchmarks differ fundamentally from common “single-file function completion” evaluations: they assess a model’s ability to complete long-horizon tasks in realistic engineering contexts, such as app creation, feature development, code migration, and cross-platform conversion. These task chains often span dozens of files and require repeated compilation and self-testing.

    From the public data, the participating solutions differ across four dimensions:

    • Pass rate: the share of tasks that fully meet acceptance criteria, with a high of about 28.7%, another solution at about 24.0%, and a low of about 17.3%;
    • Average completion level: the relative progress a task reaches, ranging from about 71% to 82%;
    • Average runtime: the time to complete a single benchmark run, from about 12 hours to about 27.4 hours;
    • Cost per run: from single-digit dollars to more than $300, a span of over thirtyfold.

    What stands out is not the ranking but that the four metrics do not move in the same direction. The solution with the highest completion level takes the longest and costs the most; the lowest-cost solution also has the lowest pass rate. This shows that in long-horizon tasks, “smarter” and “more cost-effective” are two goals that must be measured separately.

    2. Why Long-Horizon Tasks Amplify Differences

    In short tasks, a model needs only one correct inference. In long-horizon tasks, correctness depends on a chain of correct decisions, and errors accumulate along the chain. It can be approximated as:

    1. P(overall success) ≈ Π P(single step correct) - rollbacks caused by environment noise

    A single-step accuracy of 95% leaves only about 36% across a 20-step chain. This explains two things: first, pass rates are naturally far lower than completion levels; second, any single compilation failure, dependency conflict, or failed test assertion can invalidate an entire run, while the cost of retrying is a double expense in both time and money.

    The cost structure of long-horizon tasks changes accordingly. Cost is no longer determined mainly by token unit price but by the number of “explore–verify–rollback” cycles. An agent willing to repeatedly read code, run builds, and inspect logs may cost tens of times more per run than a “one-shot” solution, but achieves a higher pass rate. This is the engineering root cause of high completion level, long runtime, and high cost appearing together.

    3. How to Read the Four Metrics

    • Pass rate measures “deliverability” and works well as a hard gate;
    • Completion level measures “partial-work value” and helps assess the cost of human takeover;
    • Runtime measures “cycle occupancy” and determines whether a task fits into overnight batch processing;
    • Cost per run measures the “unit economics” and determines whether a solution can scale.

    A practical approach is to combine the four into a comparable metric, such as “effective cost per passed task”:

    1. def effective_cost(total_cost, pass_rate, tasks=30):
    2. passed = tasks * pass_rate
    3. return total_cost / passed if passed else float("inf")
    4. # High-completion solution: 317.4 / (30 * 0.240) ≈ $44.1 per passed task
    5. # Low-cost solution: 9.9 / (30 * 0.173) ≈ $1.9 per passed task

    Ranking the same leaderboard by different metrics can lead to opposite conclusions. If a team has ample engineering capacity and needs high-completion first drafts, the former is more suitable; if tasks are batch-oriented, standardized, and can tolerate human rework, the latter has a clear advantage in unit economics.

    4. A Reusable Evaluation and Selection Method

    1. Build your own task set. Draw 20 to 30 tasks from a real requirement pool, covering four categories—new builds, feature iteration, dependency upgrades, and platform migration—and specify acceptance conditions that can be judged automatically.
    2. Fix the environment and budget. Standardize the build image, dependency versions, timeout, and per-run cost cap; otherwise data across solutions is not comparable.
    3. Record in layers. Beyond the final pass or fail, log time to first successful compilation, number of passing tests, and number of human interventions to pinpoint which stage a failure occurs in.
    4. Run dual tracks in parallel. Use the low-cost solution for batch screening and regression, and the high-capability solution for complex migrations, forming a cost gradient.
    5. Build up context assets. Standardize directory structure, complete build scripts and unit tests, and maintain clear interface contracts; this can significantly raise the baseline pass rate for all kinds of agents.

    A sample task description should include sufficient constraints:

    1. task: add offline caching capability
    2. acceptance:
    3. - build command exits successfully
    4. - all new unit tests pass
    5. - second launch without network can read cache
    6. constraints:
    7. max_files_changed: 8
    8. timeout_minutes: 40

    5. Common Pitfalls in Practice

    • Looking only at pass rate while ignoring rework hours, which underestimates total cost;
    • Letting an agent work in a project with no tests and no logs, making failures impossible to attribute;
    • Putting a long-running solution into an interactive workflow, worsening both experience and cost;
    • Ignoring compliance boundaries for data and code, and bringing sensitive information into an external inference chain.

    A more robust engineering path is to run AI coding capabilities in a controlled cloud environment: use a container platform to provide isolated execution sandboxes, use object storage to keep build artifacts and task snapshots, use logging and monitoring with alerts to track the time and failure cause of each step, and rely on a general cloud product category such as Baidu AI Cloud to handle permissions, auditing, and cost aggregation. This makes it possible both to reproduce benchmark-style quantitative evaluation and to keep unit costs within a predictable range.

    6. Conclusion

    The value of a leaderboard lies not in the rankings but in laying out the real cost of long-horizon engineering tasks: capability, time, and money must all enter the decision function at once. For most teams, the right answer is a combination rather than a single choice—use the low-cost solution for breadth, use the high-capability solution to secure the critical path, and rely on your own task set and a unified environment as a long-term calibration baseline.