Interpreting AI Coding Benchmarks for Android Projects: Pass Rate, Completion, Time, and Cost

    This article explains a set of AI coding benchmark results published for Android development, where tasks span app creation, feature development, code migration, and app conversion rather than single-file completion. It breaks down four metrics—pass rate, average completion, average time, and cost per run—shows why high completion with long runtime reflects a depth-first strategy while low time and cost reflect a breadth-first one, and offers a three-tier framework for matching capability levels to exploration, delivery, and maintenance tasks, plus common pitfalls and infrastructure practices for turning evaluation into a repeatable engineering capability.

    1. Why Android Development Needs a Dedicated Benchmark

    General code generation evaluations usually focus on the completion accuracy of a single file or a single function. Delivering a real Android project is a long-horizon process that spans modules and build cycles: the agent must understand Gradle build scripts, resource directory structure, manifest declarations, dependency version constraints, UI lifecycles, and the permission model, then converge gradually through repeated compile-run-fix loops.

    For that reason, an Android developer community publicly released a set of AI coding benchmark results for Android scenarios in November. The evaluated subjects were several mainstream AI coding tools and LLM combinations, and the task types covered app creation, feature development, code migration, and app conversion.

    The core value of this kind of benchmark is that it raises the question from “can it write the code” to “can it deliver under real project constraints.” It does not measure the hit rate of a single completion, but whether a model can autonomously decompose requirements, locate relevant files, generate compilable code, handle runtime exceptions, and iterate on fixes across dozens of long-horizon tasks.

    2. Evaluation Dimensions: Pass Rate, Completion, Time, and Cost

    In the published data, each participating combination is broken down into four quantifiable dimensions, which map to four categories of delivery risk.

    • Pass rate: the share of 30 long-horizon tasks that fully met the acceptance criteria. Top combinations were around 28.7%, mid-tier combinations around 24.0%, and lightweight combinations around 17.3%. This is the strictest metric, requiring functionality, build, and runtime to hold at the same time.
    • Average completion: the relative progress a task reached, around 82.3% for the top combination and 71.2% for the lightweight one. High completion means most of the skeleton is in place, but the remainder is often the hardest boundary handling.
    • Average time: end-to-end wall-clock time for a single benchmark round, around 27.4 hours and 12.0 hours respectively. Time directly determines the length of the feedback loop.
    • Cost per run: around USD 317.4 and USD 9.9 respectively. The cost gap exceeds an order of magnitude and is a key constraint for budget-sensitive teams.

    Note that these four metrics do not move in the same direction. High completion usually comes with high time and high cost, because the model needs more compile rounds, more tool calls, and longer context backtracking; low-time, low-cost combinations generally trade off exploration depth.

    3. Engineering Trade-offs: What High Completion with Long Runtime Means

    High completion with long runtime is a typical depth-first strategy: the model tends to finish the task in full, including error handling, resource adaptation, compatibility branches, and test scaffolding, at the cost of spending much time on verification and rollback. The benefit is that the deliverable is closer to a mergeable state with a lower rework probability; the risk is a feedback cycle that is too long, so a mid-course requirement change leaves significant sunk cost.

    Low time and low cost is a breadth-first strategy: it quickly produces a runnable skeleton and leaves uncertain parts to human decisions. It suits scenarios with clear requirements and acceptance criteria, but on tasks such as cross-module migration that need global consistency, the pass rate drops noticeably.

    A practical way to judge is to introduce the concept of effective throughput, the number of truly mergeable tasks per unit time:

    1. effective throughput ≈ pass rate × parallelism / average time
    2. cost per delivery ≈ cost per run / pass rate

    Putting both time and cost in the denominator avoids being misled by a single attractive metric.

    4. A Team Selection Framework: Match Capability to Task Tiers

    It is advisable to split tasks into three tiers and match each with a different capability level.

    1. Exploration tier: requirements are vague and the approach is undecided, so fast validation matters most; prefer low-time, low-cost combinations.
    2. Delivery tier: acceptance criteria are clear and mergeable code is needed; prefer high-completion combinations and reserve a sufficient time budget.
    3. Maintenance tier: code migration, version upgrades, and bulk refactoring emphasize global consistency and regression safety, and require long-context and multi-round tool-calling capability.

    Supporting engineering practices include: writing machine-verifiable acceptance scripts for tasks; wiring build, static checks, and unit tests into continuous integration so the model gets feedback in a closed loop; using small commits and rollback-able branches for high-risk changes; and running license and dependency compliance scans on generated code.

    5. Practical Advice and Common Pitfalls

    There are three common pitfalls: looking only at pass rate while ignoring cost; treating completion as deliverability; and using a single run’s result in place of a long-term stability assessment. A more robust approach is to build a small internal benchmark set covering high-frequency tasks in your own business, re-test it regularly, and put time, cost, and rework rate on the same dashboard.

    On the infrastructure side, a container platform can standardize the build environment, object storage can hold build artifacts and evaluation datasets, a message queue can decouple long-running tasks, and logging and monitoring with alerting can track failure modes—turning evaluation from a one-off activity into a sustainable engineering capability. Baidu AI Cloud can provide standardized support for these general capabilities, helping teams turn the evaluation process into a reproducible pipeline.