AI Coding Agent Benchmarks on Android Development: Engineering Trade-offs

    This article breaks down a recent Android development benchmark that evaluated AI coding agents built on three general-purpose large models. It explains the four metrics used to score long-horizon tasks—pass rate, average completion, average runtime, and cost per run—and what each one means in practice. Readers will learn when to choose a high-completion, high-cost configuration versus a lightweight, low-cost one, how to build a reproducible internal benchmark with fixed tasks and acceptance scripts, and how to balance pass rate against cost. It also outlines deployment guidance from Baidu AI Cloud for running coding agents at scale.

    1. Why the Android Development Benchmark Matters

    A cloud vendor’s official developer account recently published benchmark scores for several coding agents on an Android development benchmark, covering agent configurations built on three general-purpose large models. This is not a collection of traditional algorithm puzzles. Instead, it is an evaluation suite designed around real engineering scenarios: in a complete development environment, the model must operate as an agent to create apps, implement features, migrate code, and convert applications across long-horizon tasks.

    The value of this kind of benchmark is that it pulls “model capability” back from single-turn Q&A into a full engineering loop: read requirements, read existing code, modify multiple files, run the build, inspect errors, and fix them until the artifact is installable and runnable. As a result, the outcome is no longer an isolated percentage but a vector composed of four dimensions: pass rate, average completion, average runtime, and cost per benchmark run.

    From the public data, the top-performing configuration passed slightly more than a quarter of 30 long-horizon tasks, with average completion above 80%, but average runtime close to 30 hours and a cost per run on the order of roughly $300. The lightweight configuration passed slightly more than one-sixth of the tasks, with average completion around 70%, average runtime around 12 hours, and a cost per run under $10. A cost difference of an order of magnitude buys a double-digit difference in pass rate—this is the engineering trade-off this article discusses.

    2. Breaking Down the Metrics: What the Four Numbers Actually Mean

    2.1 Pass Rate: A Binary “Deliverable” Judgment

    Pass rate measures whether a task meets the acceptance criteria, and it is usually binary: the artifact builds, installs, and the critical path works, so it passes; otherwise it fails. It is unforgiving toward half-finished work, so improvements in pass rate often come from longer exploration and more rounds of self-repair.

    2.2 Average Completion: A Continuous Progress Signal

    Average completion is a continuous metric that reflects how far a task has progressed—for example, the UI has been generated but the data layer is not wired up. It is suitable for process monitoring and for deciding when to roll out gradually: completion that stays consistently high indicates the agent has reliable “keep moving forward” capability, and even when a task ultimately fails acceptance, it leaves intermediate artifacts that a human can take over.

    2.3 Average Runtime: Wall-Clock Time for Long-Horizon Tasks

    Long-horizon tasks take hours, which means the evaluation is asynchronous, interruptible, and resumable. Runtime depends not only on model inference speed but also on the waiting time for environment setup, dependency fetching, builds, and tests. In engineering terms, runtime should be split into “thinking time” and “environment time”; the latter can often be compressed significantly through caching and image pre-warming.

    2.4 Cost per Run: The Multiplicative Effect of Tokens and Time

    Cost is determined mainly by input/output token consumption and runtime together. In long-horizon tasks, repeatedly reading large repositories and feeding repeated build logs back into the context amplifies input-side consumption. Effective ways to control cost include context trimming and retrieval-based feeding, incremental build caching, early stopping for failing tasks, and downgrading low-value tasks to the lightweight configuration.

    3. Where Each Strategy Fits

    The high-completion, long-runtime strategy fits: migrating existing code, cross-module refactoring, complex features that require multiple rounds of build verification, and scenarios where a one-time investment is acceptable and the goal is a final deliverable. The low-cost, fast-response strategy fits: small features with clear requirements, prototype validation, batch repetitive changes, and day-to-day iteration for teams that are sensitive to budget and response time.

    A practical way to decide is to divide tasks along two dimensions: “change surface × verification cost.” Tasks with a large change surface and high verification cost go to the heavy configuration; tasks with a small change surface and fast verification go to the light configuration, with a unified acceptance script as a safety net.

    4. A Reproducible Evaluation and Selection Method

    Teams are advised to build a small internal benchmark with a fixed task set, fixed acceptance scripts, and a fixed environment image, record the four metrics, and run multiple repetitions to observe variance. A sample task description and acceptance convention looks like this:

    1. task:
    2. id: migrate-list-to-paging
    3. goal: Migrate the list page to paginated loading while preserving existing interactions
    4. constraints:
    5. - Do not add third-party dependencies
    6. - Keep the existing directory structure
    7. acceptance:
    8. - Build passes with no new warnings
    9. - All manual test cases on the critical path pass
    10. - Number of changed files stays within the threshold

    For execution, the recommended combination is “containerized environment + dependency caching + tiered log collection + early stopping on failure,” which separates environment time from total runtime so it can be optimized independently.

    5. Deployment Guidance from Baidu AI Cloud

    To use coding agents at scale inside an enterprise, Baidu AI Cloud recommends a general-purpose capability combination: use a container platform to host isolated build environments, object storage to hold task artifacts and intermediate snapshots, a message queue for asynchronous scheduling and peak shaving of long-running tasks, and a logging service with monitoring and alerting to build dashboards for runtime, cost, and failure rate, while setting permission and audit boundaries for sensitive code repositories. With a mechanism of “split heavy and light configurations + unified acceptance + cost dashboard,” teams can find a controllable balance point between pass rate and cost that fits their own budget.