AI Coding Benchmarks for Android Development: Engineering Trade-offs Revealed
This article examines what long-horizon, repository-level coding benchmarks reveal about AI agents in real Android development. It breaks down four key metrics—pass rate, average completion, average runtime, and cost per run—and explains why high completion with long runtime and low cost with short runtime represent different risk profiles rather than a simple ranking. It also covers how the agent framework around a model affects results, how to decompose the evaluation bill into optimizable parts, and practical guidance for building task sets, making decisions, and scheduling models.
1. Benchmark Background: Why Real-Engineering Coding Benchmarks Matter
Traditional code generation evaluations mostly rely on single-file function completion and algorithm problem pass rates. The problems have clear boundaries, short context, and deterministic judging. Real application development is the opposite: requirements are scattered across documents and discussion threads, codebases run to hundreds of thousands of lines, and build configuration, resource files, permission declarations, and dependency versions are tightly coupled. Acceptance criteria often cannot be confirmed until the app actually runs. This is why engineering-oriented benchmarks for long-horizon tasks have emerged. A typical setup gives an agent several high-level requirements and asks it to explore, modify, build, run, and iterate within a complete repository, with functionality that genuinely works as the final judging criterion.
Such benchmarks usually measure four dimensions that do not move in the same direction:
- Pass rate: the proportion of a fixed set of long-horizon tasks that fully meet the acceptance criteria;
- Average completion: a partial score for tasks that do not fully pass, weighted by requirement points or acceptance items;
- Average runtime: wall-clock time from task dispatch to final judgment, reflecting end-to-end latency;
- Cost per run: the model invocation and execution resource cost consumed by one complete evaluation round.
Public data shows a clear split. One class of models reaches a pass rate of roughly one quarter across thirty long-horizon tasks, with average completion above 80%, but average runtime close to thirty hours and a cost of about $300 per run. Another class reaches a pass rate of about one sixth, with average completion around 70%, average runtime around twelve hours, and a cost of less than $10 per run. The former spends nearly thirty times the cost for roughly fifty percentage points of completion improvement; the latter enters the usable range with significantly lower time and cost thresholds. Understanding this split is more valuable than memorizing specific rankings.
2. Reading the Metrics: The Triangle of Completion, Pass Rate, and Runtime
Completion and pass rate describe two different kinds of gains. Completion is continuous and measures “how much was done”; pass rate is discrete and measures “whether it is deliverable.” A model with 80% average completion and a one-quarter pass rate means most tasks are close to usable but commonly stuck on a key acceptance item—for example, an incomplete permission flow, missing state restoration, or broken layout at a specific screen size. Such gaps are relatively friendly to manual finishing, since developers only need to fill in a few pieces before delivery.
Runtime and cost reveal the agent’s execution paradigm. Long runtime usually comes from more exploration rounds, more frequent build and run verification, and longer failure backtracking chains. It is not necessarily inefficient; often it is precisely the result of bringing verification into the loop. Conversely, low-runtime, low-cost approaches tend to compress the exploration and verification budget and converge earlier to an implementation that “looks reasonable.” This offers excellent cost-effectiveness on tasks with clear requirements and mature patterns, but is prone to instability on cross-module migration tasks.
Evaluation should therefore not stop at a single ranking but return to the task profile: how deterministic the requirements are, how coupled the codebase is, whether acceptance can be automated, and how wide the delivery time window is.
3. Agent Frameworks: Different Engineering Shells Around the Same Model
One notable detail is that different results often correspond to different agent implementations—the “engineering shell” outside the model. It determines how context is organized, how tools are exposed, how failures are retried, and how verification is triggered. Swapping the shell around the same model can produce a double-digit difference in results. A reusable minimal control loop looks like this:
for step in range(max_steps):obs = workspace.read_state() # Aggregate repo structure, failure logs, and pending requirementsplan = planner.update(obs) # Break long requirements into verifiable small stepsaction = executor.apply(plan) # Edit code, configuration, and resource filesresult = verify.run(action) # Build + unit/UI automation + static checksif result.passed_all():return deliver(action)memory.record(result.failures()) # Write failure experience back to avoid repeating mistakes
The three places most sensitive to input and output are: the fidelity of verification (whether it actually builds and runs), the degree of structure in failure information (whether logs are trimmed into locatable signals), and the memory mechanism (whether the same error keeps recurring). These three determine whether runtime is spent on convergence or on going in circles.
4. Cost Model: Breaking the Bill into Optimizable Parts
The cost of a single evaluation round is not a black box. It can be approximated as: input context size × number of invocation rounds + output length × unit price + execution environment duration × resource unit price. Accordingly, optimization approaches follow naturally: compress the initial context and load only the modules and interface definitions relevant to the task; use retrieval instead of feeding everything in full; split long tasks into independently acceptable subtasks to reduce ineffective backtracking; snapshot and parallelize the verification environment to shorten wall-clock time; and configure different model tiers for different phases, using a low-cost tier for exploration and a high-capability tier for finishing.
When deployed in the cloud, these capabilities are usually carried by general-purpose categories: container platforms provide isolated and reproducible execution environments, object storage holds repository snapshots and artifacts, message queues decouple task dispatch from result collection, and logging services with monitoring and alerting are used to observe rounds, failure rates, and cost curves. Baidu AI Cloud provides a similar combination of general-purpose infrastructure for such R&D efficiency scenarios, and teams can build their own evaluation and scheduling pipelines on top of it.
5. Selection and Implementation Recommendations
- Build your own task set: extract twenty to fifty tasks from a real requirement pool, covering four categories—new builds, feature development, migration, and conversion—and automate acceptance as much as possible.
- Decide with dual metrics: use completion to measure “finishability” and pass rate to measure “deliverability,” then combine runtime and cost to draw a four-quadrant chart rather than looking at a single average.
- Layered scheduling: assign exploration and trial-and-error to a low-cost, fast tier, and the critical path and final convergence to a high-capability, long-running tier, balancing the bill and quality.
- Put human-machine division of labor upfront: write error-prone acceptance items such as permissions, privacy, payments, and accessibility into an explicit checklist to reduce long-tail rework.
- Continuous regression: both models and shells iterate, so trends on a fixed task set are more trustworthy than a single score.
Overall, high completion with long runtime and low cost with short runtime are not a matter of better or worse, but reasonable choices under different risk preferences. What engineering teams truly need to build is the ability to evaluate model capability, agent shell, verification systems, and cost constraints on the same table.
