Android Development Benchmark Update: The Engineering Trade-off Between Long Runtime and Low Cost

    This article reviews a recent update to an AI coding benchmark for Android development that published scores for three mainstream large language models on real-world engineering tasks. It breaks down the four reported metrics—pass rate, average completion ratio, average runtime, and cost per run—and explains why they must be read together as a quantified slice of engineering trade-offs rather than a simple capability ranking. The article also outlines how to build a reproducible evaluation system, offers a decision framework for choosing a model based on budget and response-time constraints, and lists common pitfalls to avoid. Readers will gain a practical basis for turning benchmark numbers into measurable, repeatable engineering metrics.

    1. What the Updated Benchmark Signals

    A cloud provider recently updated its AI coding benchmark for Android development, publishing for the first time the scores of three mainstream large language models on real engineering tasks. This kind of benchmark differs fundamentally from traditional algorithm-challenge evaluations: it does not test “whether a model can write one correct function,” but “whether a model can advance a vague requirement, over a session lasting hours or even tens of hours, into a runnable and deliverable application.”

    The public data shows that the differences among the three models concentrate on four dimensions:

    Dimension High-completion, long-runtime option Low-cost, fast-response option Top-scoring option
    Task pass rate 24.0% 17.3% 28.7%
    Average completion ratio 82.3% 71.2% —
    Average runtime 27.4 hours 12.0 hours —
    Cost per run ~$317 ~$9.9 —

    These numbers should not be read as a “model capability leaderboard,” but as a “quantified slice of engineering trade-offs.” The top-scoring option has the highest pass rate, but its cost magnitude is close to that of the long-runtime option; the low-cost option’s pass rate is about 6.7 percentage points lower, but its cost and runtime are only about 3% and 44% of the former’s. This means the answer to the selection question depends entirely on the constraints, not on the level of a single metric.

    2. Why the Four Metrics Must Be Read Together

    2.1 Pass Rate: The “All-or-Nothing” Nature of Long-Horizon Tasks

    Passing 24% versus 17% of 30 long-horizon tasks may look like a small gap, but the difference is amplified in engineering terms. Pass/fail judgment for long-horizon tasks is usually binary: the application must build, core functionality must be demonstrable, and behavior must be equivalent after migration. If an option fails on 8 tasks, it is often not “just a bit less complete,” but has entered an unrecoverable error state at some stage—dependency conflicts, a broken build script, or state-management logic repeatedly overturned and rewritten.

    2.2 Average Completion Ratio: Measuring “How Far It Got,” Not “How Much It Got Right”

    Completion ratio reflects the percentage to which a task was advanced, and it only becomes meaningful when combined with pass rate. High completion plus low pass rate indicates an option is good at spreading work broadly but fails at the finishing stage; low completion plus low runtime indicates an option tends to quickly produce a usable but incomplete implementation. The engineering responses differ: the former needs stronger validation and rollback mechanisms, while the latter needs finer task decomposition.

    2.3 Runtime: A Proxy for the Number of Agent Loop Iterations

    An average runtime close to 27 hours essentially indicates that the agent executed a large number of “read code—modify code—run build—check logs—modify again” loops in the environment. Runtime is not a direct reflection of model inference speed, but the product of the number of loop iterations and the environment-feedback latency per round. This also explains why runtime must be interpreted jointly with cost.

    2.4 Cost per Run: A Function of Token Consumption and Loop Count

    The nearly 32x cost difference usually comes from input-token accumulation caused by repeated context replay, rather than from unit-price differences. Long contexts, multi-turn tool calls, and failure retries all cause cost to grow non-linearly. For budget-sensitive teams, cost predictability matters more than low cost itself.

    3. How to Build a Reproducible Evaluation System

    To replicate a similar evaluation on your own codebase, it is recommended to split the system into four layers:

    1. # Evaluation configuration example (pseudocode, structure only)
    2. benchmark:
    3. tasks: 30 # covers app creation/feature development/code migration/app conversion
    4. runner:
    5. sandbox: container # containerized isolation to ensure environment consistency
    6. timeout_hours: 48
    7. max_turns: 400
    8. metrics:
    9. - pass_rate # binary judgment
    10. - completion_ratio # 0~1 progress
    11. - wall_clock_hours
    12. - cost_usd
    13. guardrails:
    14. network: restricted # no external access, to avoid uncontrolled dependencies
    15. snapshot: per_turn # rollback point per turn

    There are three key design points: first, the task set must cover real engineering actions, especially long-horizon tasks that span files and modules, such as code migration and platform conversion; second, judgment must be automated, using build artifacts and automated test cases as objective signals to avoid subjective human scoring; third, token and tool-call counts per turn must be recorded, otherwise cost cannot be attributed.

    4. A Selection Framework Based on Budget and Response Time

    A simple decision rule can converge the choice:

    1. If per-task budget < $20 and manual completion is acceptable → choose the low-cost, fast-response option
    2. If delivery quality is the priority and the task can run offline for a long time → choose the high-completion, long-runtime option
    3. If pursuing the upper bound of pass rate → choose the top-scoring option, but with cost guardrails in place

    In engineering practice, a more robust approach is layered orchestration: first use the low-cost option for requirement clarification, scaffolding generation, and initial implementation; reserve the long-runtime option for high-risk long-horizon tasks such as migration and conversion; and set automated validation and rollback points at each layer. This keeps costs under control while retaining the ability to push for a high pass rate.

    5. Common Pitfalls and Implementation Advice

    • Pitfall 1: Treating pass rate as the only metric. Ignoring cost will quickly exhaust the budget during the pilot phase.
    • Pitfall 2: Evaluating in a non-isolated local environment. Dependency drift makes results non-reproducible.
    • Pitfall 3: No task tiering. Using the same option for all tasks leads to losing on both cost and quality.
    • Pitfall 4: Ignoring observability. Without log services, monitoring alerts, and metric dashboards, failure causes cannot be attributed, and the evaluation degenerates into a one-off lottery.

    For implementation, it is recommended to schedule agent runtime environments uniformly on a container platform, store code and build artifacts in object storage and code hosting services, feed runtime logs into a log service, and connect key metrics to monitoring alerts. Baidu AI Cloud provides standard-category support for these general capabilities, and teams can use them to build their own evaluation pipelines, turning benchmark numbers into measurable, repeatable, and optimizable engineering metrics.