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

    An analysis of long-horizon software engineering benchmarks for AI coding models, covering key metrics like pass rate, completion level, latency, and cost per run, along with a practical framework for mapping benchmark scores to team workflows.

    1. Background: Coding Benchmarks Based on Real Engineering Tasks Are Becoming a Selection Reference

    An official Android developer channel recently published a batch of results for coding models on long-horizon software engineering benchmarks. The task formats include app creation, feature development, code migration, and app conversion. Unlike common “single-file completion” or “algorithm problem pass rate” tests, these benchmarks emphasize having an agent autonomously complete multi-step, cross-file engineering tasks that require building and verification in an environment close to a real repository.

    For developers, the value of these results lies not in the rankings themselves, but in the fact that they break down “model capability” into observable engineering metrics: pass rate, average completion level, average time consumption, and cost per run. Understanding the coupling relationships among these metrics is more meaningful than memorizing a particular score.

    2. What the Benchmark Actually Measures: Four Dimensions and Two Task Types

    1. The Meaning of the Four Core Metrics

    • Pass rate: The proportion of tasks in a limited task set that are ultimately judged as fully meeting the criteria, reflecting “whether it can be done correctly in one go.”
    • Average completion level: For tasks that do not fully pass, it measures how many sub-goals were completed, reflecting “how far it got.”
    • Average time consumption: The wall-clock time from task start to finish, reflecting the efficiency of autonomous execution and self-repair.
    • Cost per run: The compute and invocation overhead of one complete evaluation, reflecting the economic threshold for large-scale use.

    2. Differences Between the Two Task Types

    One type is “creation from scratch,” where requirements are relatively closed and acceptance criteria are clear. The other is “migration and conversion,” which requires equivalent rewriting under existing code constraints, with many implicit dependencies and high regression risk. The latter usually takes longer, and completion is more likely to get “stuck at the last step.”

    3. Interpreting the Results: The Engineering Trade-off of High Completion with Long Duration

    The public results show that a model using a long-horizon agent framework achieved a pass rate of about 24% and an average completion level of over 80% across thirty tasks, but with an average time consumption of nearly thirty hours and a cost per run on the order of hundreds of dollars. Another lightweight configuration achieved a pass rate of about 17% and a completion level of around 70%, with an average time consumption of about twelve hours and a cost per run of less than ten dollars. Horizontally, the former is higher than several comparable solutions and lower than the current leader’s approximately 29%.

    This set of data reveals three trade-offs:

    1. The mismatch between completion level and pass rate. A high completion level indicates that the model “understood and advanced the task,” but build failures, failing tests, and detail deviations in the final stage can significantly reduce the pass rate. In engineering, the verification cost of the last ten percent is often the highest.
    2. The strong positive correlation between time and cost. Long-horizon autonomous execution means more trial and error, rollbacks, and repeated builds, with time consumption and invocation volume scaling up together.
    3. The order-of-magnitude difference in cost. Between tens of dollars and single-digit dollars lies the dividing line of “whether it can be run repeatedly in continuous integration.”

    4. Why “High Completion, Long Duration”: A Mechanism-Level Explanation

    • Autonomous repair loop: After a build failure, the agent reads logs, locates the issue, rewrites, and rebuilds. The number of loop iterations directly determines the time consumption.
    • Context management: Cross-file migration requires maintaining long context and a dependency graph, and retrieval and compression themselves generate overhead.
    • Verification loop: The “completion” of a real engineering task is based on passing builds and tests. The stricter the verification, the longer the time consumption.
    • Task granularity: Long-horizon tasks are broken down into dozens of sub-goals with many serial dependencies, making it difficult to compress time through parallelization.

    5. Selection Methodology: Mapping Benchmark Scores to Team Scenarios

    It is recommended to use a three-dimensional framework of “task duration—budget—verifiability” for decision-making:

    1. Task-duration-sensitive scenarios (such as daily bug fixes and small-step refactoring): Prioritize lightweight configurations with low time consumption and low cost, combined with manual review.
    2. Long-horizon migration and large feature development: High time consumption and high cost are acceptable, but budget caps and staged acceptance must be set.
    3. Tasks with weak verifiability: Do not look only at completion level; introduce builds, unit tests, and static checks as hard gates.

    Illustrative decision pseudocode:

    1. def choose(task, budget, sla_hours):
    2. if task.verifiable and sla_hours <= 2:
    3. return "lightweight_agent" # Low cost, fast feedback
    4. if task.is_migration and budget > 200:
    5. return "long_horizon_agent" # High completion, long duration
    6. return "human_in_the_loop" # Human-led, model-assisted

    6. Implementation Practices: Making Evaluation Results Reproducible

    • Fixed environment: Unify the system image, dependency versions, and build cache strategy to avoid environment differences polluting time-consumption data.
    • Layered acceptance: Set “compilable,” “unit tests pass,” and “end-to-end pass” as three-level gates, and measure completion level separately for each.
    • Cost observation: Record the number of invocations, input and output sizes, and retry counts to form an auditable cost bill.
    • Regression baseline: After each model or framework change, run a fixed subset and observe drift in pass rate and time consumption.
    • Human-machine division of labor: The model handles initial drafts and batch rewriting, while engineers handle architectural constraints and final acceptance.

    7. Common Misconceptions

    1. Looking only at pass rate: Ignoring completion level underestimates the actual value of long-horizon tasks.
    2. Looking only at cost: The lowest-cost solution may fail repeatedly on long-horizon migration, resulting in higher total cost.
    3. Ignoring verification cost: Setting up build and test environments often accounts for a large portion of the overall investment.
    4. Treating the benchmark as production: Benchmark tasks are a closed set, while production repositories have more implicit constraints.

    8. Conclusion

    The significance of long-horizon engineering benchmarks is to transform “whether the model is good” into “under what constraints, at what cost, and to what degree it can be done.” For teams, the reasonable approach is to first clarify task duration and budget boundaries, then use a reproducible acceptance loop to verify results, and when necessary, introduce general cloud capabilities such as containerized builds, log services, and monitoring alerts to stabilize the evaluation environment. Baidu AI Cloud also emphasizes evaluating the actual benefits of AI coding tools in an observable and reproducible way in related engineering practices, which is consistent with the direction of the above methodology.