AI Coding Benchmarks for Android Development: Engineering Trade-offs Revealed

    This article breaks down a public benchmark of AI agents on real-world mobile app development tasks and the four metrics that matter in production: pass rate, average completion, average wall-clock time, and cost per run. It explains why high completion does not equal usability, how time and cost are coupled, how the agent harness changes results, and how to turn benchmark data into a selection matrix with layered task routing, verification gates, cost observability, resumable runs, and internal baselines.

    1. Why Real Engineering Tasks Need a New Benchmark

    Most traditional code generation benchmarks rely on single-file, single-function problems that test correctness at the level of local syntax and algorithms. Real application development is not a collection of isolated problems. It is a long chain that spans requirement understanding, project scaffolding, UI and business logic implementation, dependency management, build and packaging, runtime verification, and defect fixing. A set of agent evaluation results for mobile app development scenarios, recently published by a cloud vendor’s developer relations team, moves the evaluation target from “write a piece of code” to “deliver a runnable application.”

    These benchmarks typically cover four task categories: app creation (building a buildable project skeleton from scratch), feature development (adding a complete feature to an existing project), code migration (porting an existing implementation across languages or frameworks), and app transformation (changing the technical form while preserving behavior). Tasks are organized as long-horizon runs. A single task often requires an agent to perform dozens or even hundreds of rounds of read, write, execute, and self-check operations. As a result, the evaluation outcomes carry a strong engineering character rather than being a pure ranking of model capability.

    2. Four Core Metrics: From “Can It Be Done” to “Is It Worth Doing”

    Across the same set of long-horizon tasks, different agent configurations can be abstracted into four dimensions that together determine whether a pipeline is usable in production:

    • Pass rate: the share of tasks that fully meet the acceptance criteria, measuring the capability ceiling and stability.
    • Average completion: the relative progress a task reaches, reflecting the recoverable value of a “half-finished” result.
    • Average time: the wall-clock time for a single task from start to convergence, which determines the length of the feedback loop.
    • Cost per run: the compute and invocation overhead of one complete evaluation round, which determines repeatability.

    A configuration with high completion and long duration and one with low time and low cost fall into the “capability-first” and “efficiency-first” quadrants respectively. The former has a higher pass rate, but average time is measured in tens of hours and the cost of a single round reaches the hundreds of dollars. The latter has a noticeably lower pass rate, but time is compressed to just over ten hours and the cost per round drops to the ten-dollar range, a difference of roughly two orders of magnitude. This is not a simple better-or-worse relationship, but the optimal solution under different constraints.

    3. How the Metrics Interact: Why High Completion Does Not Mean Usable

    The metric most easily misread in engineering is average completion. In a demo scenario, the gap between 80% and 70% completion is almost imperceptible, but in a delivery scenario it means completely different amounts of rework: the former may only be missing a few edge-case handling steps and acceptance scripts, while the latter may still have a core path unfinished. Completion should therefore be evaluated together with pass rate. High completion combined with a low pass rate indicates that the agent is good at “spreading out” but not at “closing the loop,” and additional quality gates are needed as a safety net.

    Time and cost are almost linearly correlated, but they carry different business meanings. Time affects the rhythm of human-machine collaboration: tens of hours of unattended operation require tasks to be resumable from checkpoints, logs to be searchable, and state to be observable. Cost affects whether evaluation can become routine: a few hundred dollars per round means sampling validation can only happen at release milestones, while the ten-dollar range per round supports running the evaluation on every commit.

    1. Usability ≈ f(pass rate, completion) / g(time, cost)
    2. Constraint examples:
    3. Nightly batch -> long time allowed, prioritize pass rate
    4. Commit gate -> limit time and cost, prioritize determinism

    4. The Impact of the Agent Harness

    It is worth noting that with the same underlying model capability, wrapping it in different agent execution frameworks can produce differences far beyond expectations. The agent framework determines how context is organized, how tools are registered, how failures are retried, and how verification is triggered. Common engineering practices include building layered memory for long tasks and compressing retrieved key information into reusable summaries; treating build and test as first-class tools so the model gets real feedback at every step; and setting a maximum retry count and rollback points for failed operations to avoid continuously consuming budget on a wrong path. These designs are independent of any specific product and are general industry practices.

    5. Implementation Advice: Mapping Benchmark Results to a Selection Matrix

    1. Layered task routing. Classify tasks by verifiability and duration. Route short, fast tasks with clear acceptance criteria to low-cost configurations, and long-horizon, high-value tasks to high-capability configurations.
    2. Enforce a verifiable closed loop. The precondition for merging any automated change is that the build passes, static checks pass, and critical test cases pass, as illustrated below:
    1. gate:
    2. build: required
    3. lint: required
    4. test: [critical_path, regression]
    5. budget:
    6. max_wall_clock: 30m
    7. max_cost_per_run: 1.0
    1. Make cost observable. Bring invocation volume, token consumption, and retry counts into monitoring, alerting, and logging services, and aggregate them by task, so budget black holes can be located.
    2. Checkpoints and idempotency. Long-running tasks must support state persistence, idempotent replay, and human takeover, so that a single interruption does not invalidate an entire round.
    3. Build an internal baseline. Use your own repositories and acceptance scripts to build an internal benchmark and run regression checks quarterly, so you are not led by external leaderboards.

    6. Conclusion

    The value of a leaderboard lies not in the rankings it produces, but in exposing the structure of engineering trade-offs: capability, time, and cost cannot all be optimal at the same time. For a team, the right approach is to first clarify its own constraints (delivery cadence, budget ceiling, risk tolerance) and then choose a configuration combination and gate strength accordingly. If elastic compute and a supporting engineering foundation are needed, you can build a reproducible evaluation pipeline on general capabilities such as the container platform, object storage, logging service, and monitoring and alerting offered by Baidu AI Cloud, so that every model and agent upgrade is backed by evidence.