AI Coding Benchmarks for Mobile Apps: Pass Rate, Latency, and Cost Trade-offs
This article analyzes an AI coding benchmark focused on real mobile app engineering tasks, including app creation, feature development, code migration, and app conversion. It explains four key metrics—pass rate, average completion, average latency, and cost per benchmark run—compares two representative agent tiers, and discusses practical trade-offs for team adoption. It also provides a selection framework, a budget-guarded routing pattern, guidance for building internal evaluation sets, and process metrics for measuring delivery efficiency and cost-effectiveness.
AI Coding Benchmarks for Mobile Apps: Pass Rate, Latency, and Cost Trade-offs
1. Introduction: From writing correct code to shipping working apps
Over the past few years, AI coding capabilities have evolved along a clear path: completing a line of code, generating a function, building a module, and eventually delivering a full application. However, judging whether a coding agent is truly production-ready requires more than looking at code completion accuracy or unit test pass rates.
Real engineering work is long-horizon. Building a runnable app from scratch, adding a feature set to an existing project, or migrating legacy modules to a new framework often requires coordination across multiple files, dependency resolution, build configuration, platform adaptation, and repeated debugging. A single task can take anywhere from several hours to tens of hours.
Recently, a major platform company published benchmark results for AI coding scenarios focused on mobile application development through its official developer community. The benchmark targets real engineering tasks such as app creation, feature development, code migration, and app conversion. The reported metrics include:
- Pass rate
- Average completion
- Average latency
- Cost per benchmark run
The evaluated agents span different tiers, including high-investment configurations and low-cost, low-latency configurations. In this article, the term “AI coding agent” refers to all evaluated coding agents, and the term “coding benchmark” refers to this benchmark. The goal is to unpack the engineering logic behind the metrics and provide a reusable method for technology selection and cost estimation.
2. Why engineering tasks are used in coding benchmarks
2.1 From short tasks to long-horizon tasks
| Dimension | Short task: completion or single-function generation | Long-horizon task: app creation or feature migration |
|---|---|---|
| Context | Current file or local code snippet | Cross-file understanding of project structure and dependencies |
| Interaction | One request, one output | Multiple think-act-observe-correct cycles |
| Feedback | Syntax correctness and unit test pass are often enough | Requires build, install, launch, and interaction verification |
| Failure cost | Low, immediately visible and easy to fix | High, may remain hidden until integration |
| Evaluation granularity | Binary: right or wrong | Must distinguish partial completion from full delivery |
For short tasks, a model only needs to produce reasonable code within a limited context. For long-horizon tasks, the agent must continuously maintain an understanding of the codebase, make decisions at each step that do not compromise the final goal, and self-correct based on real feedback returned by tools.
2.2 What makes mobile app development especially demanding
Mobile app development is an ideal scenario for testing long-horizon capabilities because:
- The build pipeline is complex: Source code must go through compilation, resource packaging, signing, and other stages before producing an installable artifact. A failure in any stage can stop the task.
- The runtime environment is constrained: Apps run on emulators or physical devices and are affected by screen sizes, permission models, background restrictions, and other constraints. Static checks alone cannot catch every issue.
- Version compatibility matters: Platform version differences can change UI rendering, permission requests, lifecycle callbacks, and other behaviors.
- Integration verification is necessary: App creation tasks require artifacts that can be installed and launched. Migration and conversion tasks also require functional equivalence checks against the original app.
These characteristics mean that “compiles successfully” is not the same as “delivers successfully.” Therefore, the acceptance criteria of a coding benchmark must be closer to real software delivery standards rather than stopping at syntax-level validation.
3. Understanding the four core metrics
The four metrics published by the benchmark are related, but each answers a different question:
| Metric | Question it answers | Capability or property it reflects | Why it matters to teams |
|---|---|---|---|
| Pass rate | How many tasks are actually delivered? | End-to-end reliability of task closure | Determines whether the agent can work independently |
| Average completion | How far did non-passing tasks progress? | Ability to advance tasks incrementally | Determines how much human effort remains after handoff |
| Average latency | How long does one round take? | Depth of decision-making, retry frequency, degree of serialization | Determines feedback speed and planning approach |
| Cost per benchmark run | How much does one round cost? | Reasoning volume, retries, tool-call scale | Determines whether the approach is viable at scale |
3.1 Pass rate: measuring deliverability
Pass rate is the proportion of tasks that fully satisfy the acceptance criteria. It typically uses an all-or-nothing judgment: a task passes only if the build succeeds, tests pass, and behavior verification passes.
Pass rate matters because it closely reflects real delivery scenarios. Stakeholders usually want an app that can be installed, launched, and used to meet requirements, not a draft that is 80% complete. Because pass rate is binary, it is highly sensitive to a few critical failure points: a null pointer that crashes the app on launch, or a missing permission declaration, can make an otherwise highly completed task fail.
3.2 Average completion: measuring incremental progress
Average completion describes how far tasks have progressed. A common approach is to divide a task into verifiable subgoals, such as generating the project skeleton, implementing core screens, integrating the data layer, passing the build, and passing behavior tests. Each task is scored based on completion proportion or weighted progress, and the results are averaged across all tasks.
Its value is that it avoids the information loss of binary metrics. Two agents may both fail to complete a task, but one may have finished most of the work while the other barely started. The human cost of taking over is very different. A higher average completion indicates that failed tasks are closer to the finish line and that the remaining manual work is smaller.
3.3 Average latency: measuring effective working time
Average latency is the total time from task start to final judgment. It is usually measured in hours and includes model inference, tool execution, build waiting, failure retries, and all serial and parallel stages.
Latency directly affects two important outcomes: how quickly developers receive feedback, and how many tasks can be advanced in parallel within the same time window. A high latency value may mean the agent is exploring and validating more thoroughly, or it may mean the agent is stuck in inefficient trial-and-error loops. For this reason, latency should be interpreted together with pass rate and cost.
3.4 Cost per benchmark run: measuring feasibility at scale
Cost per benchmark run is the total cost of completing a full batch of benchmark tasks. It is mainly composed of:
- Input and output tokens from model calls
- Multi-round agent reasoning and tool calls
- Retries and rollbacks after failures
- Resource overhead for build and verification environments
This metric answers the question of whether the approach can scale. If the economic cost per task is far higher than manual completion, even strong capabilities will be difficult to adopt broadly across teams.
4. Interpreting the results: what high completion and low pass rate reveal
The published results show a clear contrast between two tiers. All data below come from the official benchmark results, while ratios and derived values are calculated in this article:
| Metric | Tier A: high completion, long latency | Tier B: low cost, low latency |
|---|---|---|
| Participation method | Bundled agent | Third-party agent framework |
| Pass rate | 24.0% | 17.3% |
| Average completion | 82.3% | 71.2% |
| Average latency | 27.4 hours | 12.0 hours |
| Cost per benchmark run | About 317.4 USD | About 9.9 USD |
| Average cost per task, derived | About 10.6 USD | About 0.33 USD |
Tier A scored higher than several earlier models in the same series, but lower than the highest-scoring tier in this benchmark run, which reached 28.7%.
4.1 The “last mile” is the biggest cost bottleneck
A structural comparison is revealing:
- Tier A reached an average completion of 82.3%, meaning that failed tasks were already more than 80% complete on average. Failures are concentrated near the final stage, such as the artifact failing to install, a critical path crashing, or behavior verification failing.
- However, its pass rate was only 24.0%, meaning roughly three out of every four tasks could not be fully delivered.
Across all tasks, both tiers showed an average completion of roughly 71% to 82%, but the proportion of fully passing tasks was only 17% to 24%. The gap between completion and pass rate reflects how efficiently tasks cross the last mile.
Assuming the seven passing tasks in Tier A are scored at 100%, the remaining tasks still contribute a substantial share of the reported average completion. Simple estimates suggest that failed tasks still average in the mid-to-high 70% range, while a more realistic segmented weighting suggests an average completion of about 85% for failed tasks.
No matter which estimation method is used, the conclusion is the same: the tasks are not impossible to complete. They are completed but fail to cross the finish line.
In contrast, Tier B had a completion rate about 11.1 percentage points lower but still achieved a 17.3% pass rate. This shows that it can close the loop more reliably with less overall completion.
This highlights an important fact: completion measures how much work was done, while pass rate measures how much was actually delivered. They are not the same thing. Therefore, when evaluating agents, teams should not look only at impressive completion scores. They should also ask about the conversion rate from completion to pass rate.
4.2 A 32x cost difference for only a 1.39x pass-rate improvement
Tier A’s cost per benchmark run was about 32 times that of Tier B, and its average latency was about 2.28 times higher. However, its pass rate was only about 1.39 times higher, an improvement of 6.7 percentage points, and its completion rate was only 11.1 percentage points higher.
If we roughly measure marginal cost as the additional run cost needed for each additional percentage point of pass rate, Tier A is about:
(317.4 - 9.9) / (24.0 - 17.3) ≈ 45.9 USD per percentage point
Tier B is less than about 1.5 USD per percentage point when using zero as the baseline.
This is a simplified estimate, and the actual marginal cost depends on the baseline chosen for comparison. Even so, it shows that Tier A uses about 32 times the cost to gain a limited improvement in pass rate. This trade-off only makes sense when task value is high enough and the cost of delivery failure is high enough to justify it.
4.3 Long latency: deep thinking or repeated trial-and-error?
Tier A’s average latency reached 27.4 hours. Assuming a batch of 30 tasks executed in parallel, the end-to-end latency per task is roughly comparable to the reported average. This means that a single app-creation task can occupy a full working day. In an interactive development workflow, such latency makes immediate feedback almost impossible.
Long latency has two sides:
- Positive side: Longer effective working time often comes with more exploration and validation, such as writing tests, running multiple builds, and diagnosing failures. This is consistent with Tier A’s higher completion rate.
- Negative side: If latency mainly comes from ineffective retries, it becomes wasted compute and wasted cost.
To distinguish between these two cases, teams need process metrics such as task working time, meaning time that produces real progress, and effective-time ratio, defined as task working time divided by total latency. These are important metrics to collect when building an internal evaluation system.
4.4 The value of Tier B: low cost is not merely a fallback
Tier B achieved a pass rate of 17.3%, completion of 71.2%, latency of 12.0 hours, and a cost per benchmark run of less than 10 USD. On individual metrics, it did not lead in completion or pass rate. However, its significance is that it significantly lowers the adoption threshold for AI coding agents:
- Scalability: A full benchmark run costs less than 10 USD, making it economically feasible to let an agent attempt every task first.
- Faster feedback: Its average latency was about 44% of Tier A’s, reducing waiting time by more than half.
- Suitable for tiering: Using the low-cost tier for breadth and the high-cost tier for depth is a core strategy for controlling total cost.
5. Engineering trade-offs: building a rational selection framework
5.1 Five common trade-offs
The data above reflect five trade-offs that are common in long-horizon agent tasks:
- Capability-cost trade-off: Stronger reasoning and longer exploration can improve pass rate, but cost grows faster than linearly, while pass-rate gains often show diminishing returns.
- Capability-latency trade-off: More thorough exploration takes more time. In interactive scenarios, developer waiting time may matter more than a marginal pass-rate improvement.
- Completion-pass-rate trade-off: Completion reflects process progress, while pass rate reflects final delivery. The two can diverge: an agent may have higher average completion but not necessarily higher pass rate.
- Agent-model trade-off: The same model can perform differently when paired with different agents. Tier A and Tier B used a bundled agent and a third-party agent framework, respectively, showing that scaffolding design—context management, tool calling, and failure recovery—can significantly affect final results.
- Evaluation benefit-cost trade-off: Evaluation itself costs money. Tier A’s benchmark run costs more than 300 USD per batch, which can add up during frequent iterations. Teams should use small-scale benchmarks for fast regression and large-scale benchmarks for formal acceptance.
5.2 Selection decision matrix
| Task type or scenario | Primary concern | Recommended strategy |
|---|---|---|
| Prototype validation, creative exploration | Speed and cost | Start with the low-cost tier, with human review |
| Routine feature development, UI adjustments | Balance of pass rate and cost | Start with the low-cost tier, then escalate failures |
| Core-path development, legacy system migration | Pass rate and correctness | Prioritize the high-cost tier with strict verification |
| Large-scale batch transformation, such as unified migration | Marginal cost per task | Use the low-cost tier as the main approach, with the high-cost tier for difficult cases |
| Urgent fixes, production incidents | Latency | Emphasize fast localization and response, avoiding long-latency approaches |
6. From evaluation to execution: applying benchmark results in practice
6.1 Task-tiered routing: breadth first, depth second
A proven strategy is tiered routing: use a low-cost, low-latency agent to handle breadth and process tasks in bulk. For failed or high-value tasks, route them to a higher-cost, higher-completion agent to solve the last mile.
The following example shows a routing loop with budget guardrails. It is pseudocode and should be replaced with the actual model invocation interface when integrating with a specific model:
# budget_guard.py: add budget, timeout, and repeated-failure guards to long-horizon agent tasksdef solve_with_guardrails(task, config):ctx, result = {}, Nonerepeated = 0last_sig = None# Budget guard: cap cost, elapsed time, and maximum iterations for a single taskbudget = BudgetGuard(max_cost=config.get("max_cost", 5.0), # Use the same unit as model billingmax_seconds=config.get("max_seconds", 7200),max_steps=config.get("max_steps", 100),)# Cost routing: start with the low-cost tier and escalate only if budget allowstier = "low_cost"while not budget.exhausted():model = pick_model(tier, task)action = model.plan(task, ctx)if action.type == "finish":# Acceptance: build, target tests, and behavior checks must all passresult = verify(task.workspace, task.acceptance)if result.passed:return result# Escalate after failure to handle the last mile with a stronger modelif tier == "low_cost" and budget.can_afford(tier="high_cost"):tier = "high_cost"budget.charge(model.price_per_call, action.tokens_in, action.tokens_out)obs = execute(action, timeout=config.get("tool_timeout", 600))ctx.update(observation=obs)# Repeated-failure guard: stop after the same error signature appears three timessig = signature(obs)repeated = repeated + 1 if sig == last_sig else 0last_sig = sigif repeated >= 3:breakreturn result or TaskResult(passed=False, reason=budget.reason())
Key engineering points:
- Tiered routing: Use the low-cost tier for breadth and the high-cost tier for difficult cases.
- Budget guardrails: Set limits on cost, latency, and steps per task to prevent runaway consumption.
- Repeated-failure detection: Stop when the same error appears repeatedly and hand the task over to a human.
- Explicit acceptance: Count a task as complete only when it truly passes acceptance, preventing false closure from self-assessment alone.
6.2 Building an internal evaluation set
Public benchmarks can only reflect general capabilities. Teams also need evaluation sets that match their own technology stack:
- Realistic sources: Tasks should be drawn from real engineering needs, such as fixing production defects, implementing user-requested features, or adapting to platform version upgrades.
- Automatically judgeable: Each task should have acceptance scripts that can be executed automatically, such as build commands, test cases, and behavior checks.
- Layered design: Cover different difficulty levels, including single-module changes, cross-module feature development, full-app creation, and migration. Avoid making the task set too easy, which can inflate scores.
- Version management: The evaluation set should evolve with the codebase, while fixed versions are retained for historical comparison to keep results comparable.
- Isolated validation: The validation set used for tuning should be isolated from the test set used for final acceptance, preventing overfitting to the evaluation set.
6.3 Execution environment and observability
Long-horizon tasks place high demands on the execution environment. Teams usually need:
- Containerized sandboxes: Run each task in an isolated container to avoid interference and improve reproducibility.
- Timeouts and resource limits: Limit maximum execution time and resource usage per task so that a single task does not slow down or break the entire batch.
- Artifact and log retention: Archive build artifacts, runtime logs, and screen recordings for failure analysis.
- Monitoring and alerts: Set alerts for failure rate, latency distribution, and cost anomalies.
These capabilities can often be supported by general-purpose cloud services. For example, Baidu AI Cloud can provide isolated and elastic container-based execution environments, object storage for build artifacts and logs, and logging and monitoring services for tracking latency and cost. Through Baidu Qianfan, enterprises can integrate multiple mainstream models and compare different model-agent combinations under a common evaluation framework.
6.4 Cost accounting and process metrics
Cost accounting is a hard constraint for technology selection. At minimum, teams should quantify the following metrics:
| Metric | Meaning | Purpose |
|---|---|---|
| Average cost per task | Total run cost divided by number of tasks | Assess economic viability at scale |
| Effective-time ratio | Time that produces progress divided by total latency | Distinguish deep thinking from ineffective retries |
| Cost per passing task | Total run cost divided by number of passing tasks | Measure cost-effectiveness of delivered artifacts |
| Retry rate | Proportion of tasks that include failed retries | Identify capability gaps and environment issues |
| Human takeover rate | Proportion of tasks requiring human intervention | Assess the actual cost of human-agent collaboration |
Using the published data, if average cost per task is calculated as total run cost divided by number of tasks, Tier A and Tier B are approximately 10.6 USD and 0.33 USD, respectively. If cost is calculated as total run cost divided by number of passing tasks, the values are approximately 44.1 USD and 1.9 USD. Under this second calculation, Tier A’s cost is about 23 times that of Tier B.
This shows that different accounting methods can lead to different conclusions. The first measures the cost of trying once, while the second measures the cost of obtaining one deliverable artifact. Reports should present both to avoid misleading decision-making.
6.5 Agent scaffolding matters as much as the model
Tier B participated through a bundled agent, so its latency and cost advantages may come from either the model itself or the agent’s execution strategy. Regardless of the combination used, the scaffolding capabilities that determine success in long-horizon tasks include:
- Context management: In long-horizon tasks, context grows quickly. Historical information should be summarized and trimmed to avoid irrelevant content crowding out useful context.
- Tool calling and permission control: Tools for file read/write, command execution, and build verification should be granted with fine-grained permissions and follow the principle of least privilege by default.
- Failure recovery: Keep rollback checkpoints so that each attempt starts from a known-good state.
- Verification-driven workflow: Make writing tests and running tests part of the agent’s default workflow, allowing it to converge in a verifiable way.
7. Conclusion
The published benchmark results send a clear signal: long-horizon AI coding agents can already complete a meaningful proportion of real app development tasks. However, the gap between completion and pass rate, along with the large differences in latency and cost, suggests several practical conclusions:
- AI coding agents are not a one-click delivery silver bullet. The rational approach today is human-agent collaboration: agents handle exploration, implementation, and initial validation, while developers handle requirement clarification, key decisions, and final acceptance.
- Technology selection should be guided by business value. Teams should evaluate cost-effectiveness using cost per passing task rather than unit price alone, and use tiered routing to balance quality, speed, and budget.
- To assess their own needs, teams should build an evaluation system that matches their business and supports automated acceptance, while continuously tracking changes in pass rate, latency, and cost.
Only when the conclusions from evaluation are applied to the engineering workflow can AI coding agents become a true productivity lever for teams.
