Mobile AI Coding Benchmarks: Weighing Pass Rate, Runtime, and Cost

    A major mobile platform's developer channel has published AI coding benchmark results for realistic engineering tasks, comparing a high-completion model with a low-cost, faster model. This article explains the four core metrics—pass rate, completion, average runtime, and cost per run—and offers practical guidance on task routing, total-cost evaluation, and building a team-specific assessment framework.

    Event Background: A Coding Benchmark for Real Development Scenarios

    Recently, the official developer channel of a major mobile operating system platform published a set of AI coding benchmark results for mobile development scenarios. For the first time, the results included scores from multiple new-generation large language models. Unlike common algorithm-problem tests, this benchmark requires models, driven by an agent framework, to complete tasks that closely resemble real engineering environments. These include creating an application from scratch, developing new features, performing large-scale code migration, and transforming application architecture. As a result, the benchmark has strong reference value for the industry.

    Among the published results, two models stand out. One is known for high completion quality but has significantly higher runtime and cost. The other is characterized by extremely low operating cost and faster response, with a relatively ordinary pass rate. The sharp contrast between the two reveals the core engineering tradeoff when deploying large-model coding capabilities.

    Understanding the Four Core Metrics

    Before discussing specific results, it is necessary to clarify the meaning and limitations of the four metrics used by the benchmark.

    1. Pass Rate

    Pass rate measures the proportion of all tasks that a model completes fully and correctly. In this evaluation, the high-completion model achieved a 24.0% pass rate across 30 long-horizon tasks, while the low-cost model reached 17.3%. It is important to note that the threshold for passing a long-horizon task is high: any compilation error, missing dependency configuration, or logic defect will cause the entire task to fail. Therefore, a pass rate of around 20% may appear low, but under fully automatic operation without human intervention, it is already a considerable level.

    2. Average Completion

    Completion reflects how much a model gets right in tasks that are not fully passed. The high-completion model reached an average completion of 82.3%, meaning that even when a task fails, its output often requires only a small amount of manual repair before it can be used. By contrast, the low-cost model’s 71.2% completion means greater manual intervention is needed. This metric often has a more direct impact on practical productivity than pass rate—developers truly care about “how much do I still need to fix,” not “did it get everything right in one attempt.”

    3. Average Runtime

    The high-completion model averaged 27.4 hours, while the low-cost model took only 12.0 hours. Behind this gap are differences in inference strategy: the former tends to perform multiple rounds of self-verification, repeated refactoring, and long exploration, while the latter pursues rapid convergence. It is important to view this runtime rationally: it is the agent’s autonomous running time, not equivalent to human waiting time. If tasks can be executed asynchronously and queued in batches, a 27-hour “slow” run may be entirely acceptable in an overnight unattended scenario.

    4. Cost per Run

    The high-completion model cost more than RMB 2,000 per benchmark run, while the low-cost model cost just over RMB 60—a gap of more than thirty times. The cost difference mainly comes from inference token consumption and model pricing strategy. For budget-sensitive teams, this number directly determines whether AI coding capabilities can be scaled up.

    High Completion, Long Runtime: A Typical Engineering Tradeoff

    The performance of the high-completion model raises a question worth considering: is it worth trading longer inference time for higher completion quality?

    From a technical perspective, such models often adopt more aggressive test-time compute strategies, investing more compute during inference in loops of planning, execution, verification, and repair. The benefits appear in two ways: first, error propagation in complex tasks is effectively contained, and deviations in earlier steps can be self-corrected in later stages; second, the final code output is more consistent, and interfaces between modules are better coordinated.

    But the costs are also obvious: per-task cost is high, and time is uncontrollable. For scenarios that require rapid iteration—such as prototype validation, temporary script generation, and simple feature patches—this “heavy-reasoning” mode is clearly over-provisioned.

    Therefore, the reasonable engineering conclusion is not “which model is better,” but “which type of task matches which mode”:

    • High-value, low-frequency tasks: such as legacy system migration, cross-architecture refactoring, and building large feature modules. These fit high-completion models, because manual repair costs far exceed compute costs.
    • High-frequency, standardized tasks: such as boilerplate code generation, unit test writing, and simple API integration. These fit low-cost, fast models and win through volume.
    • Hybrid pipelines: first use a fast model to generate a draft, then hand difficult parts to a high-capability model. This is a common practice that balances cost and quality.

    Team Adoption: Build Your Own Evaluation Framework

    Faced with an endless stream of benchmark leaderboards, development teams should not directly copy rankings for model selection. Instead, they should build an evaluation framework oriented to their own business. The following steps are recommended:

    Step 1: Profile your tasks. Count the proportion of creation, modification, and repair tasks in the team’s daily coding work, along with average complexity and tolerance for correctness.

    Step 2: Run small-scale controlled experiments. Select 10–20 real historical tasks and execute them with candidate models under the same agent framework. Record pass rate, completion, token consumption, and manual repair time.

    Step 3: Calculate total cost. Total cost = model invocation cost + manual repair cost + opportunity cost of waiting time. Many teams will find that a seemingly cheap option is not cost-effective once manual repair is included, and vice versa.

    Step 4: Establish a routing mechanism. In an AI coding platform or an in-house pipeline, automatically route tasks to different models by task type. Combine this with quality gates such as code review, static scanning, and automated testing to ensure that AI-generated code is fully validated before entering the main branch.

    At the infrastructure layer, teams can rely on general cloud capabilities—such as container platforms to host agent runtime environments, object storage to manage code artifacts, and logging and monitoring/alerting to track task execution status—to build a scalable AI coding pipeline without building the entire infrastructure from scratch.

    Conclusion

    The value of this mobile coding benchmark update lies not in producing a ranking, but in quantifying the concrete form of the eternal quality–speed–cost triangle in the era of large-model coding. The high-completion model demonstrates the potential of the test-time compute approach, while the low-cost model shows the feasibility of scaling deployment. For developers, the truly important capability is to understand the engineering meaning behind the metrics and precisely match model capabilities to the right tasks. As benchmarks continue to evolve, we have reason to expect AI coding to move from “can write code” to “writes correct code,” and then to “writes correct code at a reasonable cost.”