Android Development Benchmarks Reveal the Trade-offs of Agentic Coding
An analysis of a recent Android development benchmark that evaluates large language models on long-horizon engineering tasks. It breaks down the four core metrics—pass rate, completion, duration, and cost—explains why higher completion often comes with longer runtime and higher spend, and compares two typical agent profiles. The article also outlines the limits of benchmark credibility and offers practical guidance on tiered routing, hard constraints, verifiable signals, observability, and elastic compute for running coding agents.
1. Background: Why Mobile Development Benchmarks Are in Focus
A mobile operating system ecosystem’s official developer account recently published evaluation results for a batch of large language models in real-world Android engineering scenarios. This type of benchmark differs fundamentally from traditional code completion evaluations: instead of testing syntax correctness at the single-function level, it places the model inside a complete engineering sandbox and requires it to complete long-horizon tasks such as application creation, feature development, code migration, and cross-platform application conversion.
A long-horizon task is one that requires dozens or even hundreds of tool calls, file reads and writes, and build-and-test cycles before it converges. The core difficulty of such tasks is not “writing a correct piece of code,” but three things: first, context management—the model must maintain awareness of the overall project structure within a limited window; second, error self-recovery—it must autonomously locate and roll back when builds fail, dependencies conflict, or tests do not pass; third, goal consistency—avoiding drift from the original requirement across a long chain of steps.
The reference value of such leaderboards, therefore, is that they measure not “whether a model can write code,” but “whether a model can act as a deliverable engineering executor.”
2. Breaking Down the Evaluation Dimensions: Four Metrics Form a Constraint System
The public data shows that the evaluation system revolves around four key metrics. They are not independent; they constrain one another:
- Pass Rate: the proportion of tasks that fully meet the acceptance criteria, measuring the “usability” of results.
- Average Completion: the relative progress to which tasks are advanced, measuring how “close to usable” they are.
- Average Duration: the wall-clock time needed to finish a single benchmark run, measuring how well the engineering pace matches.
- Cost per Run: the compute and call overhead of one complete evaluation round, measuring feasibility at scale.
The key point is that high completion and long duration often share the same source. An agent that tends to repeatedly verify and exhaustively explore repair paths will push completion up while pushing duration and cost up at the same time. This is the most realistic trade-off in engineering deployment: what you buy is not accuracy, but the joint distribution of “accuracy–latency–cost.”
The following pseudocode expresses this constraint so teams can quantify it during selection:
def evaluate_agent(candidate, tasks, budget, deadline):# Budget and deadline are hard constraints; pass rate is the optimization targetfeasible = [r for r in candidate.run(tasks)if r.cost <= budget and r.duration <= deadline]if not feasible:return None # The model is unusable under the current constraintsreturn max(feasible, key=lambda r: r.pass_rate)
This logic reveals a frequently overlooked fact: in CI pipelines or customer delivery scenarios, a “smarter” result that exceeds the budget is equivalent to being unusable.
3. Typical Profiles of Two Kinds of Agents
In the public results, three models were paired with different agent harnesses, showing two distinct profiles.
Profile A: high completion, long duration, high cost. One model achieved a pass rate of about 24% across thirty long-horizon tasks, with average completion above 80%, but average duration close to thirty hours and a per-run cost in the hundreds of dollars. This configuration suits offline, non-real-time, hard-problem scenarios, such as framework upgrades of large legacy systems and cross-platform tech stack migrations. Its output is close to a “reviewable engineering draft,” but still requires a human backstop.
Profile B: low latency, low cost, medium completion. Another lightweight model had a pass rate of about 17% and average completion of about 70%, but compressed duration to just over ten hours and reduced per-run cost to single-digit dollars. A cost gap of two orders of magnitude makes it suitable for high-frequency, batch, incrementally verifiable tasks, such as boilerplate code generation, filling in single features, and batch defect triage.
It is worth emphasizing that the conclusions here do not point to any specific product, but reveal a general rule: the impact of the agent framework (tool-call granularity, verification loop design, context compression strategy) on final results is often no less than that of the underlying model itself. Swapping the harness for the same model can cause metrics to drift significantly.
4. The Credibility Boundary of the Evaluation Methodology
Engineering teams should stay cautious in three ways when referring to such leaderboards:
- Task distribution bias. The benchmark task set inevitably differs from your business codebase in architecture, dependencies, and conventions, so leaderboard rankings cannot be directly extrapolated into internal gains.
- The binary nature of pass rate. Pass/fail hides the difference between “missing a null pointer” and “an overall architecture error,” so it must be read together with completion.
- Differences in cost definitions. Per-run cost is heavily affected by cache hits, retry strategies, and parallelism, so cross-leaderboard comparisons require aligning definitions first.
A more robust approach is to build a small internal regression set and run A/B tests with a unified budget and deadline, rather than directly trusting external rankings.
5. Practical Implementation Recommendations
- Tiered routing: use a low-cost model first for task decomposition and initial screening, and reserve the high-cost model for confirmed high-value long-horizon tasks, forming a cost funnel.
- Hard constraints up front: write budget and time limits into the scheduler, and automatically downgrade or escalate to a human when limits are exceeded, avoiding “infinite repair” that devours compute.
- Verifiable signals first: pre-set builds, unit tests, and static checks for each task as objective acceptance signals, letting the agent self-correct within a closed loop—this is the most reliable lever for improving pass rate.
- Full-chain observability: use logging services, monitoring alerts, and metric dashboards to record the duration, token consumption, and failure reasons of each call, forming a data asset for continuous optimization.
- Elastic compute capacity: run agents on a container platform, with object storage holding build artifacts and intermediate context, to achieve on-demand scaling and cost isolation.
6. Conclusion
The real value of these leaderboards is not a ranking, but advancing the evaluation of “agentic coding” from single-point accuracy to system-level decision-making under four-dimensional constraints. For developers, the core selection question should change to: within a given budget and delivery deadline, which combination of model and agent framework maximizes acceptable output. Baidu AI Cloud’s accumulated capabilities in general areas such as container platforms, logging services, and monitoring alerts can provide stable hosting and an observability foundation for such long-horizon agent workloads, helping teams turn leaderboard data into reproducible internal engineering gains.
