AI Coding Agent Benchmarks Explained: Pass Rate, Time, and Cost Trade-offs in Long-Horizon Tasks

    This article explains how long-horizon benchmarks evaluate AI coding agents on mobile development tasks. It breaks down four metrics: pass rate, average completion, wall-clock time, and cost per run. It also compares a capability-first setup with an efficiency-first setup and offers a framework for choosing between them.

    1. Background: Why Mobile Development Needs Dedicated AI Coding Benchmarks

    Large language models keep setting new records on general code generation tasks, but a large gap remains between writing a working function and independently completing an application module. Mobile development shows this gap clearly. A realistic Android engineering task often involves UI layout, lifecycle management, dependency configuration, coordination across multiple modules, and version compatibility. The model must generate syntactically correct code. It must also keep its context consistent across dozens of tool calls and move the task forward until the result runs.

    To better reflect real engineering work, the industry has produced benchmarks built around specific technology stacks. These benchmarks no longer use isolated algorithm problems. Instead, they use long-horizon tasks such as building an app from scratch, adding features to an existing app, and migrating a project from an older framework version to a newer one. Agent-capable models operate in a sandbox environment, and automated test results determine the final score. The value of this approach lies in measuring end-to-end delivery ability, not the quality of individual code snippets.

    2. Breaking Down the Evaluation: What the Four Core Metrics Mean

    Public results for these benchmarks usually describe model performance across four dimensions. Understanding what each metric measures matters more than looking at a single score.

    1. Pass Rate

    Pass rate is the share of all tasks that the model completes successfully. Take a typical set of 30 long-horizon tasks. A 24.0% pass rate means about seven tasks were fully delivered and passed all acceptance tests. The number looks low at first glance, but task difficulty explains it. Long-horizon tasks require the model to stay on target through tens of hours of continuous work. A single failed environment setup, dependency conflict, or logic regression can cause an entire task to fail. Pass rate is the strictest measure of whether a model can deliver independently.

    2. Average Completion (Partial Completion)

    Even when a task fails acceptance, the model may have finished most of the work. Average completion measures the share of functionality correctly implemented in tasks that did not pass. This metric captures a model’s partial delivery ability. In real collaboration, an agent that completes 80% of the work and clearly labels what remains still has considerable engineering value. A developer can finish the job quickly from that starting point.

    3. Average Wall-clock Time

    Wall-clock time is the time needed to finish one complete evaluation run. Duration depends on several factors, including model inference speed, the agent’s planning strategy, and how many retries and self-corrections it performs. A longer run usually reflects more iteration and verification, which may produce higher completion. A shorter run suits development workflows that need fast feedback.

    4. Cost per Run

    Evaluations usually bill by token consumption and tool calls. Cost does not move in step with time. Aggressive parallel exploration and repeated rereading of large contexts both push costs up. This metric matters most for teams scaling adoption. The gap between tens of dollars and hundreds of dollars per run determines whether an approach is feasible once it is multiplied by the task volume.

    3. Benchmark Results: Capability-First and Efficiency-First Routes

    A recent round of published results shows two distinct technical routes.

    Capability-first route. A next-generation model built around a code agent reached a 24.0% pass rate and 82.3% average completion across 30 long-horizon tasks. Its average wall-clock time was 27.4 hours, and each run cost roughly 300 USD. In head-to-head comparisons, it outperformed several mainstream models in the tier below it. It still trailed the strongest flagship model from the same generation, which reached a 28.7% pass rate. This tier suits scenarios where delivery quality comes first, such as legacy system migration or prototyping complex new modules. Teams in these cases accept higher time and cost in exchange for a higher pass rate.

    Efficiency-first route. A lightweight, high-speed model entered the evaluation through an open-source code agent framework. It reached a 17.3% pass rate and 71.2% average completion. Its average wall-clock time was only 12.0 hours, and cost per run dropped below 10 USD. Its pass rate is nearly 7 percentage points lower, but it takes less than half the time and costs about 30 times less. For frequent, small-to-medium tasks such as batch refactoring, filling in unit test coverage, and generating documentation, this route offers clearly better overall value.

    The following structure summarizes the comparison:

    1. Illustrative data structure, not production code:
    2. {
    3. "route": "capability-first",
    4. "pass_rate": "24.0%",
    5. "avg_completion": "82.3%",
    6. "avg_duration": "27.4h",
    7. "cost_per_run": "~300 USD"
    8. }
    9. {
    10. "route": "efficiency-first",
    11. "pass_rate": "17.3%",
    12. "avg_completion": "71.2%",
    13. "avg_duration": "12.0h",
    14. "cost_per_run": "<10 USD"
    15. }

    4. Choosing a Setup for Your Team: A Decision Framework

    Based on these metrics, teams should evaluate options in the following steps:

    1. Classify tasks by level. Group engineering tasks by risk and complexity. Place core modules and large-scale migrations in the high-value tier. Place routine maintenance in the high-frequency, low-risk tier.
    2. Treat pass rate as the floor and completion as the flexible margin. For high-value tasks, choose a setup with both high pass rate and high completion. For low-risk tasks, accept a lower pass rate and rely on human review as a safety net.
    3. Use effective delivery cost instead of cost per run. As a rough estimate, effective delivery cost ≈ cost per run ÷ pass rate. Based on the figures above, the effective delivery cost of the capability-first setup is several times that of the efficiency-first setup. When rework after a failed task carries high manual labor costs, that premium is justified.
    4. Consider how duration affects development pace. A task cycle longer than 24 hours requires asynchronous orchestration and checkpoint recovery. Tasks on the scale of 10 hours fit a workflow where work is submitted before leaving and reviewed the next morning.
    5. Check how well the agent framework fits. The same model can score very differently under different agent frameworks, such as a general-purpose command-line agent or a vendor-specific agent. Compare the results of each model and framework combination when selecting a setup.

    5. Two Observations on Benchmark Methodology

    First, benchmark scores are a starting point, not an endpoint. Real projects include constraints such as code style standards, private dependencies, and CI/CD integration. Evaluation environments often simplify these constraints. Before adopting a setup, teams should run a small-scale retest on their own tasks.

    Second, the cost curve is falling quickly. In this round of evaluation, a lightweight model approached the completion level of the flagship model at roughly one-tenth of the cost. This suggests that model distillation and inference optimization are bringing long-horizon agent capabilities into a more affordable price range. Future leaderboards will likely shift focus from pass rate alone toward multi-objective optimization across quality, speed, and cost.

    Overall, AI coding evaluation for mobile development is maturing. The metric system now covers delivery rate, completion, timing, and cost, which gives engineering teams measurable criteria for selection. Teams benefit more from classifying tasks and building a mixed usage strategy than from chasing the top spot on a leaderboard. Capability-first and efficiency-first setups each cover the work they suit best.