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

    This article breaks down a public set of AI coding benchmark results for Android development tasks, covering three LLM-powered coding approaches evaluated on 30 long-horizon, project-like tasks. It explains four key metrics (pass rate, average completion, average wall-clock time, and cost per run), why high completion often comes with long runtimes and higher cost, and how to respond: task tiering, cost governance, agent orchestration, and selection guidance based on business constraints. The goal is to turn "can finish a run" into "can deliver."

    1. Background: A Capability Review Based on Real Engineering Tasks

    A cloud vendor’s official developer account recently published a set of coding benchmark results for Android development scenarios on social media, covering three LLM-powered intelligent coding approaches. This benchmark is not a traditional algorithm puzzle or single-file code completion test. Instead, it places the models in a “project-like” environment and asks them to complete long-horizon tasks such as application creation, feature development, code migration, and cross-platform conversion, with 30 tasks in total.

    The value of this kind of evaluation is that it elevates the question from “can it write code” to “can it finish a task end to end.” For engineering teams, the latter is the metric directly tied to delivery.

    Note that this article does not evaluate the merits of any specific product. Instead, it abstracts the public data into a general evaluation methodology for technology selection and platform building.

    2. Four Dimensions: How to Read Benchmark Results Correctly

    Four types of metrics repeatedly appear in the public data, and together they form a capability profile for long-horizon tasks:

    • Pass rate: The proportion of tasks that fully meet the acceptance criteria, reflecting “can it get it right on the first try.”
    • Average completion: The relative progress a task is pushed to, reflecting “how close it gets to being correct.”
    • Average time: The wall-clock time required to complete one benchmark round, reflecting “how long until results are available.”
    • Cost per run: The compute and invocation overhead of one full evaluation round, reflecting “whether trial and error is affordable.”

    From the public data, one notable combination is: one approach has a pass rate of about 24%, an average completion of about 82%, but an average time of nearly 27 hours and a cost of about $317 per run; another approach has a pass rate of about 17%, a completion of about 71%, a time of about 12 hours, and a cost of less than $10. The former “completes more but is slow and expensive,” while the latter “is slightly weaker but fast and cheap.”

    This comparison shows that there is a structural gap between completion and pass rate, and that time and cost are often positively correlated with completion. If you look at only a single metric during selection, it is easy to make the wrong decision.

    3. Why “High Completion, Long Time” Is an Inevitable Engineering Trade-off

    The reason long-horizon tasks are slow lies in their execution model: the model needs multiple rounds of “observe-plan-act-verify-rollback,” and each round involves reading and writing the codebase, running builds, and parsing errors. The longer the task chain, the greater the accumulated uncertainty, and the more retries and rollbacks occur.

    A simplified pseudocode can describe this execution loop:

    1. # General execution skeleton for long-horizon tasks (illustrative)
    2. for step in range(max_steps):
    3. plan = model.plan(goal, context=repo_state)
    4. patch = model.act(plan)
    5. result = sandbox.run_build_and_tests(patch)
    6. if result.passed:
    7. return patch
    8. repo_state = model.repair(repo_state, result.logs)

    As shown, the time is mainly composed of three parts: model inference time, sandbox build and test time, and repair rounds after failures. Higher completion often means the model is willing to do more rounds of verification and patching, so time naturally stretches out; cost control measures (reducing rounds, compressing context, lowering sampling size) will simultaneously push completion down.

    Therefore, “high completion with long time” is not a defect, but the explicit cost of a quality-first strategy. The real question is not “why is it slow,” but “does this slowness match your delivery cadence.”

    4. Task Tiering: Spend the Budget Where It Matters Most

    In practice, the most reliable approach is to schedule by task type in tiers, rather than using one set of parameters for everything:

    1. Short-horizon, high-frequency tasks (scripts, boilerplate code, unit test supplements): Pursue low latency and low cost, and use lightweight approaches for fast iteration.
    2. Mid-horizon feature development (new modules, interface integration): Requires a certain level of planning ability, suitable for medium-sized models plus human review.
    3. Long-horizon migration and conversion (cross-platform rework, legacy system refactoring): Must accept high time and high cost, with checkpoint resume and staged acceptance in place.

    The key to tiering is to bind “pass rate” and “completion” to the goals of different tiers: short-horizon tasks look at pass rate, while long-horizon tasks look at completion and staged deliverability.

    5. Cost Governance: Make Long Time Predictable and Budgetable

    The biggest risk of long-horizon tasks is not slowness, but “unpredictable slowness.” Practical governance measures include:

    • Budget caps: Set a maximum number of steps and maximum number of calls for a single task; when exceeded, abort and produce intermediate artifacts.
    • Stage snapshots: Fix a snapshot each time a verifiable milestone is completed, avoiding a fallback to zero after failure.
    • Cache reuse: Cache build artifacts, dependency resolution results, and test baselines to reduce repeated sandbox overhead.
    • Tiered retries: Trigger retries only for fixable errors (compilation failures, assertion mismatches), and route requirement-ambiguity issues to humans.

    Illustrative budget control logic:

    1. budget = {"max_steps": 40, "max_calls": 200, "max_cost": 5.0}
    2. if consumed(budget) >= budget["max_cost"]:
    3. return partial_artifact(repo_state) # Keep intermediate results and hand over to a human

    6. Agent Orchestration: The Engineering Shell That Determines Success

    With the same model, wrapping it in different agent shells can lead to results that differ by several times. The public data shows that different approaches used different agent frameworks, which suggests that the engineering quality of the shell often determines the success of long-horizon tasks more than the model itself.

    A qualified shell should have at least:

    • Context management: Retrieve relevant files on demand, avoiding stuffing the entire repository into the context and amplifying noise.
    • Tool abstraction: Wrap build, test, and log retrieval as stable tools to reduce the model’s misjudgment of the environment.
    • State machine constraints: Limit the set of executable actions to prevent the model from performing destructive operations.
    • Observability: Fully record the input, output, and time of each step for review and tuning.

    7. Selection Advice: No Best, Only Best Fit

    Based on the above analysis, selection should return to the business constraints themselves:

    • If the team is highly sensitive to delivery quality and tasks are mainly long-horizon migration, it should accept high time and high cost, with staged acceptance mechanisms in place.
    • If the team is sensitive to budget and response time and tasks are mainly short-horizon iteration, it should prioritize low-cost, fast approaches and leave long-horizon tasks to humans or advance them in stages.
    • If both exist, a dual-track scheduling should be established: a fast lane handles high-frequency small tasks, a heavy lane handles long-horizon large tasks, and the two are connected by a unified task queue and monitoring/alerting system.

    8. Conclusion

    What this set of benchmark results truly reminds developers of is not that a certain approach is “stronger,” but that long-horizon AI coding has entered a stage that requires fine-grained governance. Understanding the gap between pass rate and completion, and the coupling of time and cost, and building four foundational capabilities, task tiering, budget constraints, agent orchestration, and observability, is what turns “can finish a run” into “can deliver.”