Code Agent Mobile Development Benchmarks: Pass Rates and Cost Analysis

    This article examines a public benchmark that evaluates code agents on long-horizon mobile development tasks across 30 real-world scenarios. It explains the four core metrics—pass rate, average completion, average runtime, and per-run cost—and shows how to convert per-run cost into a more meaningful cost-per-pass figure. Using two representative model configurations, it demonstrates why small sample sizes call for caution (with Wilson score intervals) and offers practical guidance for scenario-based model selection, avoiding common benchmark pitfalls, and building a reproducible internal evaluation pipeline. Readers will learn how to interpret agent benchmark results and estimate the real production cost of an agent-based solution.

    1. Why Mobile Development Is a Strong Test for Code Agents

    Mobile app development is becoming an important scenario for evaluating how well code agents handle long-horizon tasks. Unlike short-horizon tasks such as function completion, unit testing, or localized fixes, mobile development tasks involve longer chains of work, more intermediate states, and heavier dependencies. An agent typically has to complete many consecutive steps: scaffold a project, read and write source code, adjust build configuration, run compilation, install the app on an emulator, interact with the UI, capture screenshots to verify behavior, locate errors, and keep fixing them. If any single step fails, the task may not pass.

    Recently, the official development team of a mainstream mobile development platform publicly released a multi-model benchmark aimed at mobile development scenarios. According to public information, this benchmark is designed to observe how different models perform on long-horizon mobile development tasks, comparing them across dimensions such as pass rate, average completion, average runtime, and per-run cost. Note that all example data cited in this article comes from public sources; the original report name, publishing link, and specific version should be taken from the publisher’s official page. To verify, you can search for terms such as “mobile development code agent benchmark pass rate average runtime cost per run.”

    From a technology-selection perspective, the value of a leaderboard is not just the ranking. It helps teams understand the engineering meaning behind each metric: pass rate indicates whether usable results can be delivered, completion shows how far a solution is from success, runtime affects iteration cadence and concurrency capacity, and cost determines whether an agent-based approach can enter a real production workflow.

    2. Reading the Public Benchmark: Criteria First, Conclusions Second

    According to the public data, the benchmark covers 30 mobile development tasks. Task types typically include creating an application from scratch, adding features to an existing project, migrating code, and converting application form factors. Evaluation relies mainly on automated builds, automated tests, UI interaction, and runtime result verification. Model versions, agent frameworks, build environments, device images, and timeout policies all follow the original report’s criteria.

    In the public data, two models represent two typical orientations: one leans toward high-capability delivery, while the other leans toward low cost and low runtime. For clarity, this article refers to them as Configuration A and Configuration B.

    Metric Configuration A: Capability-oriented Configuration B: Value-oriented
    Pass rate ~24.0% ~17.3%
    Average completion ~82.3% ~71.2%
    Average runtime ~27.4 hours ~12.0 hours
    Per-run cost ~$317.4 ~$9.9
    Cost per pass: per-run cost ÷ (30 × pass rate) ~$44.1 ~$1.9

    A note on a commonly confused calculation: per-run cost is the total cost of running through all tasks, not the cost of each passing task. To calculate the average cost per successful task, use:

    1. cost per pass = per-run cost ÷ (task count × pass rate)

    So Configuration A’s cost per pass is roughly 317.4 ÷ (30 × 0.240) ≈ $44.1, and Configuration B’s is roughly 9.9 ÷ (30 × 0.173) ≈ $1.9. The two differ by about 23×. This gap comes from differences in model call costs, as well as differences in runtime, retry counts, and task execution depth.

    3. Understanding the Four Core Metrics

    Pass Rate: The Outcome-Focused Success Rate

    Pass rate is the proportion of passing tasks out of the total after running all tasks to completion. It directly answers one key question: can the model and agent framework independently deliver a usable result?

    The strength of pass rate is its clear definition, which makes it suitable for horizontal comparison. But its limitations are equally clear: it is a binary metric that only reflects success or failure and cannot express “almost succeeded.” Two configurations with similar pass rates may differ significantly—one may barely pass, while the other is more stable and easier to maintain.

    Average Completion: Measuring How Far Failed Tasks Fall Short

    Average completion measures how close not-fully-passing tasks come to succeeding. Common approaches include the proportion of passing tests, milestone weighting, and requirement coverage. For example, a task can be broken into checkpoints such as “project compiles,” “main screen launches,” “core interactions work,” and “regression tests all green,” then scored cumulatively by weight.

    The value of completion is that it supplements what pass rate cannot express. It helps teams judge whether a failed task is only missing the final step or whether it diverged from the goal from the start. However, completion must be designed carefully. If scoring points are too scattered, an agent may rack up inflated scores by piling on code. Therefore, critical-path steps should be weighted, and each scoring point should ideally be automatically verifiable.

    Average Runtime: The Impact on Developer Experience and Concurrency

    Average runtime is the end-to-end time for a single task from start to finish, including model inference, tool calls, build execution, device operations, screenshot verification, and failed retries.

    In interactive development, runtime directly affects how long developers wait; in batch automation, it determines how many tasks can be processed per unit of time; and in long-horizon tasks, it amplifies both inference costs and environment costs. It is worth noting that a long runtime does not necessarily mean inefficiency. If tasks can run in parallel and ultimately achieve a higher pass rate and completion, a longer runtime may buy better delivery quality.

    Per-Run Cost: More Than the Model Quote

    Per-run cost usually refers first to model call fees. But in an engineering budget, it should also include build resources, emulator or physical-device hours, object storage, logs, human review, and rework costs. Vendors bill differently—some by token, some by time, some by instance or resource tier. As a result, budget estimation cannot compare model unit prices alone; it must fold in the agent, the build environment, and human corrections together.

    4. From Per-Run Cost to Cost per Pass

    To make costs comparable, you can convert “per-run cost” into “cost per pass”:

    1. cost per pass = per-run cost ÷ (task count × pass rate)
    2. cost per hour = per-run cost ÷ total runtime

    For Configuration B, the cost per pass is roughly:

    1. 9.9 ÷ (30 × 0.173) ≈ $1.9

    The average hourly cost is roughly:

    1. 9.9 ÷ (30 × 12.0) ≈ $0.028

    The value of these formulas is that they put configurations with different pass rates and runtimes on the same yardstick. Teams no longer need to remember only “which model is more expensive.” Instead, they can answer: how much do you actually pay for each successfully completed task; whether the hourly runtime cost is acceptable; and whether it is worth paying a premium for a higher pass rate when the task value is high.

    5. Small-Sample Statistics: Read Leaderboard Conclusions with Caution

    A sample of 30 tasks is not very large. A pass rate of 24.0% versus 17.3% looks like a gap, but from a small-sample statistics standpoint, the difference may not be significant. If you approximate 24.0% as 7 successes out of 30 tasks and 17.3% as 5 successes, both could sit within wide fluctuation ranges.

    Using the Wilson score interval for small-sample proportion estimation:

    • 7/30 corresponds to a 95% confidence interval of roughly 11.8%–40.9%;
    • 5/30 corresponds to a 95% confidence interval of roughly 7.3%–33.6%.

    The two intervals overlap substantially. Therefore, you cannot draw absolute conclusions from a single 30-task point estimate. More robust practices include: expanding the task-set size, running the same task set repeatedly, reporting pass@k, providing confidence intervals, and breaking down performance by task type.

    Below is reproducible example code for calculating the Wilson interval and cost per pass:

    1. import math
    2. def wilson_interval(k: int, n: int, z: float = 1.96) -> tuple:
    3. """ Wilson score interval, suitable for small-sample proportion estimation """
    4. p = k / n
    5. denom = 1 + z * z / n
    6. center = (p + z * z / (2 * n)) / denom
    7. margin = z * math.sqrt(p * (1 - p) / n + z * z / (4 * n * n)) / denom
    8. return round(center - margin, 4), round(center + margin, 4)
    9. def cost_per_pass(run_cost: float, task_count: int, pass_rate: float) -> float:
    10. """ Average cost per passing task """
    11. return round(run_cost / (task_count * pass_rate), 2)
    12. if __name__ == "__main__":
    13. profiles = {"Config A": (0.240, 30, 317.4), "Config B": (0.173, 30, 9.9)}
    14. for name, (rate, tasks, cost) in profiles.items():
    15. k = round(rate * tasks)
    16. lo, hi = wilson_interval(k, tasks)
    17. print(f"{name}: 95% pass rate interval {lo:.1%}~{hi:.1%}, "
    18. f"cost per pass ${cost_per_pass(cost, tasks, rate)}")

    This code outputs results consistent with the text above: Configuration A’s cost per pass is about $44.08, and Configuration B’s is about $1.91; the corresponding Wilson intervals also match the description above.

    6. Making Sense of High Completion and Long Runtime

    Configuration A has a higher average completion and a longer average runtime. This is not contradictory. When an agent faces build errors, UI anomalies, or missing dependencies, it may try multiple repair approaches. Each additional “compile–verify–fix” cycle brings completion closer to the target state, but also raises the time cost.

    One common misconception needs correcting: Configuration A is not superior to other models on every metric. The public data shows that Configuration A’s pass rate of about 24.0% is slightly lower than 28.7% for another top general-purpose model in the same evaluation. This does not mean a specialized agent framework has no value. On the contrary, it suggests that if Configuration A forms a comprehensive advantage in completion, runtime, cost controllability, long-horizon stability, or ease of engineering integration, it may still suit certain teams. Model capability, tool use, prompting strategy, and build environment should be evaluated as a whole.

    Therefore, selection cannot rely on a single pass rate. For critical business migrations or high-complexity tasks, higher completion means fewer half-finished projects; for prototype validation and batch boilerplate generation, lower runtime and lower cost often matter more.

    7. Scenario-Based Selection: Three Questions on Budget, Speed, and Quality

    Technical teams can first use three questions to decide on a configuration direction:

    1. Is the budget sensitive? If the budget is limited, task value is low, and errors can be quickly fixed manually, prioritize a low-cost configuration.
    2. Is speed sensitive? If you need to validate quickly or produce prototypes fast, a low-runtime configuration is more suitable.
    3. Is delivery quality the priority? If tasks involve core business, legacy system migration, complex interactions, or long-term maintenance, prioritize a configuration with high completion and high pass rate.

    Reference selection strategies:

    • Budget-sensitive teams: suited to prototype validation, boilerplate code generation, trial development of routine features, and low-risk batch processing.
    • Quality-first teams: suited to core business iteration, complex refactoring, large-scale legacy system migration, and one-off deliveries with high requirements.
    • Layered combination strategy: use the low-cost configuration for simple tasks and the high-capability configuration as a fallback for complex tasks; set an escalation-and-retry mechanism for failed tasks to raise the final success rate while keeping total cost under control.

    8. Beyond Leaderboard Bias: Three Common Pitfalls

    First, do not look only at ranking while ignoring task composition. A benchmark may lean toward native mobile development, whereas a team may actually use cross-platform frameworks, different UI libraries, or a special build chain—leading to different results.

    Second, do not ignore differences at the agent layer. The same model, paired with different agent frameworks, tool-use strategies, prompts, and verification loops, can produce very different outcomes. The model and the execution layer should be evaluated together.

    Third, do not overlook the cost definition. Per-run cost is only part of the ledger. Build resources, emulator hours, log storage, network transfer, human review, and rework costs can all affect the final budget.

    9. Building a Reproducible Agent Development Benchmark

    Rather than waiting for external leaderboards to update, it is better to build your team’s own small benchmark. Executable steps:

    1. Task sampling: Draw 20–50 typical tasks from real requirements, covering four categories—creation, feature development, migration, and conversion—and record baseline results.
    2. Environment isolation: Use a containerized sandbox to fix dependency versions, device images, and build tools, avoiding environment differences from contaminating the evaluation results.
    3. Two-stage scoring: First complete builds, unit/UI tests, and static checks automatically, then have reviewers verify code quality, maintainability, and security.
    4. Cost control: Set a timeout, a maximum number of turns, and a spending cap for each task to prevent the agent from falling into unproductive loops.

    A general configuration template you can reference:

    1. task_id: feat-001
    2. category: feature # create | feature | migration | conversion
    3. description: Add pull-to-refresh and an empty-state hint to the list page
    4. budget:
    5. timeout_hours: 2
    6. max_turns: 120
    7. max_cost_usd: 3
    8. scoring:
    9. build_required: true
    10. tests: [unit_smoke, ui_smoke]
    11. human_review: [code_quality, security]
    1. Continuous regression: After each model or agent-framework upgrade, rerun the benchmark to form a trend curve rather than keeping only a one-off snapshot. If a team needs to scale up the evaluation, it can leverage general-purpose capabilities on mainstream clouds—for example, container services to isolate build sandboxes, object storage to archive task artifacts and execution traces, and log services and monitoring/alerting to observe runtime, failure rate, and cost metrics.

    10. Conclusion: No Single Best Model, Only the Best-Fit Combination

    The release of a public mobile development benchmark provides a more meaningful yardstick for evaluating code agents. It sends three clear signals:

    First, the capability ceiling is still rising, but long-horizon mobile development tasks are far from fully solved. A high-completion configuration can reduce the cost of failures, but runtime, stability, and cost still need engineering optimization.

    Second, the cost gap cannot be ignored. The cost per pass of different configurations can differ by more than an order of magnitude. Looking only at the per-call price tends to underestimate the real budget.

    Third, the scenario determines selection. Budget-sensitive teams seeking fast validation are better suited to low-cost configurations; teams with high delivery-quality requirements and complex tasks need high-completion configurations more.

    The rational approach is not to chase leaderboard rankings, but to first clarify your own task distribution, budget constraints, and delivery standards, then use a reproducible internal benchmark to measure continuously. Only by putting the agent in the right place can it truly integrate into the R&D workflow and steadily create measurable value.