AI Coding Benchmarks for Mobile Development: Balancing Efficiency and Cost

    AI coding benchmarks are moving beyond function-level code generation to measure whether an agent can deliver complete engineering tasks. This article examines a mobile development benchmark across four metrics—pass rate, average completion, average time, and cost per run—and uses two representative solutions to show the trade-off between a high-completion, high-cost approach and a lightweight, cost-effective one. It explains why long-horizon tasks drive up time and cost, and offers practical guidance on matching solutions to scenarios, breaking down tasks, setting cost guardrails, writing acceptance criteria, building reproducible evaluation sandboxes, and establishing an internal benchmark.

    From “Writing Code” to “Delivering Tasks”

    Traditional code-capability evaluations mostly take the form of function-level completion or single-turn Q&A: you provide a function signature and a comment and expect an implementation in return, or you provide an error message and expect a fix suggestion. These tasks have clear boundaries and relatively deterministic answers, can be finished in seconds to minutes, and are easy to grade automatically. Real software development goes far beyond that. Delivering a single requirement usually involves understanding the requirement, retrieving code, making cross-file changes, adjusting dependencies, verifying the build, and self-testing; an application migration or architecture conversion also involves a large volume of repetitive replacements that must be checked one by one.

    For this reason, the focus of evaluation is shifting from “can it write code” to “can it finish the job.” Benchmarks aimed at real engineering scenarios are gaining traction. A long-horizon task is one that requires the model to execute tens or even hundreds of consecutive steps from start to finish: reading the project structure, retrieving relevant code, invoking command-line and build tools, running tests, and repeatedly fixing issues based on errors until every acceptance criterion is met.

    In these evaluations, the model is no longer a passive code-completion tool but the driver of an intelligent coding assistant that delivers end-to-end work autonomously inside a controlled sandbox. A mobile development benchmark recently updated its results. It targets mobile application development and evaluates AI’s ability to complete real engineering tasks such as app creation, feature development, code migration, and app conversion. The leaderboard raises a question worth discussing: when the task changes from “write a piece of code” to “deliver a runnable application,” how should efficiency, quality, and cost be traded off?

    Four Core Metrics: What Each One Answers

    The leaderboard is built around four metrics, each capturing a different facet of an intelligent coding assistant’s engineering performance.

    Metric Core meaning Question it answers
    Pass rate Share of tasks that fully meet all acceptance criteria How many tasks are truly deliverable
    Average completion Average task progress (including unfinished parts) How far did it get on average
    Average time Average wall-clock time to complete or terminate a task How long you have to wait
    Cost per run Cost of running one full benchmark round How much budget is required

    1. Pass rate: the hard metric closest to “deliverable.” It uses an all-or-nothing judgment. In terms of task difficulty, the tasks that pass are often highly patterned work such as adding screens, routine feature development, and standard process migration; the ones that fail tend to cluster around compatibility adaptation, complex state management, and multi-module coordination.

    2. Average completion: a progress metric that shows “how far it got.” It is a continuous value that reflects the model’s ability to make progress. But a high completion rate does not mean the result is deliverable. Partial failures often stem from a few critical details—the API constraints of the target runtime, UI specifications, or mishandled boundary conditions—and once the task gets stuck on one of them, overall progress stalls at a high level. From an engineering standpoint, the gap between completion and pass rate is a rough measure of rework cost: the wider the gap, the more tasks are left in a “almost done but unusable” state.

    3. Average time: an efficiency metric for “human waiting cost.” Long-horizon tasks can take anywhere from ten to several dozen hours—far beyond a single manual coding session, yet comparable to the time a person would spend on a similar migration or refactoring. The significance of this metric should therefore be understood in terms of “how much manual work it replaces.” A long runtime can come either from careful exploration and verification or from inefficient retries and context bloat; the two cases must be judged together with cost.

    4. Cost per run: an economic metric that determines whether a solution can scale. It depends on token consumption, the model’s unit price, and the overhead of retries and tool calls. From the public results, the cost across different solutions can differ by tens of times, which directly determines whether an intelligent coding assistant can be “rolled out in full” or “used only where it matters.”

    Reading the Results: Two Approaches, Two Trade-offs

    In the latest evaluation, two representative intelligent coding solutions showed sharply different approaches. One entered using an agent framework and, across 30 long-horizon tasks, achieved a 24.0% pass rate, 82.3% average completion, 27.4 hours average time, and roughly $317 cost per run. Its results are higher than those of several already-evaluated models, though it still trails the temporarily first-place solution (28.7% pass rate). The other, positioned as a lightweight, cost-effective model, entered after being adapted to an open-source agent framework, with the following metrics:

    • Pass rate: 17.3%
    • Average completion: 71.2%
    • Average time: 12.0 hours
    • Cost per run: roughly $9.9, less than one-thirtieth of the former (referred to below as “Solution A”)

    The trade-off between the two is clear:

    • Solution A spends roughly 2.3x the time and about 32x the cost to gain about 6.7 percentage points in pass rate and 11.1 percentage points in average completion;
    • the lightweight solution, with its clear advantages in speed and cost, is better suited to teams that are sensitive to budget and response time.

    If we introduce the derived metric “cost per pass” (cost per run ÷ pass rate), Solution A comes out to roughly 1322, while the lightweight solution comes out to roughly 57—the former is about 23x the latter. In other words, with all else held equal, the average price Solution A pays for one genuinely passing task is more than twenty times that of the lightweight solution. This metric puts “expensive” and “worth it” on the same scale and is especially useful for budget-sensitive teams.

    Two conclusions, however, deserve caution.

    • The pass-rate gap is limited. With a sample of 30 tasks, a single task is worth about 3.3 percentage points. The gap between Solution A and the leader works out to fewer than 1.5 tasks, and single-run results are easily affected by the distribution of task difficulty and by run-to-run variance, so it is unwise to draw firm conclusions from them.
    • Completion may not come from the same kinds of tasks. Average completion is the arithmetic mean of each task’s completion, and the failure distributions of different solutions can be completely different: one solution may reach the final stretch on most tasks but stop at the last compatibility or build gate, while another may drift away from the requirement early on. Looking at a single mean therefore hides the real failure modes; per-task detail is still needed for proper attribution.

    Why the Trade-offs Exist: The Engineering Behind It

    High completion often comes with long runtime and high cost—not by chance, but because of the engineering properties of long-horizon tasks.

    1. Long task chains, with errors accumulating step by step. From requirement understanding and solution retrieval to multi-file changes and finally build and testing, a long-horizon task is a chain of many interdependent steps. If the accuracy of a single step is p, the probability that n consecutive steps are all correct is roughly p to the power of n. Even at 98% single-step accuracy, 50 error-free steps in a row leave only about a 36% chance of success. The longer the chain, the lower the probability of getting through in one pass, and the resulting rework, retries, and cost amplification grow non-linearly.

    2. Context bloat, with diminishing marginal value of information. During a long run, code content, tool outputs, and history messages keep accumulating and the context keeps growing. This can dilute key constraints, or it can hit the model’s context-length limit and force the system to compress or truncate history. The former may cause the model to “forget” the original requirement and make off-target changes; the latter may drop key intermediate conclusions. Both add extra rounds and wasted consumption.

    3. A high share of verification cost. After every change, the project must be rebuilt and the tests rerun; mobile projects additionally involve an emulator or a physical device, and a single verification pass is itself time-consuming. The time spent generating code is often only a small fraction of the total; most of the time is consumed in the “compile–run–observe–fix” loop.

    4. The pass threshold is a “weakest-link” effect. A long-horizon task requires the project to build and to run correctly in the target environment. A problem in any single module can fail the whole evaluation—this is the root cause of high completion coexisting with low pass rate.

    Practical Guidance: Using Intelligent Coding Assistants Effectively

    1. Match the solution to the scenario rather than following the ranking.

    • For “long-chain, low fault-tolerance” tasks such as large-scale code migration and legacy-system refactoring, a higher-completion solution is a better fit. But set a budget ceiling and proceed with phased acceptance.
    • For interactive tasks such as everyday feature development and localized bug fixes, response speed and cost matter more, and a lightweight, cost-effective solution has the advantage.

    2. Break down tasks to shorten the dependency chain. Split a large task into independently verifiable subtasks—for example, first handle the data layer and interface layer, then the UI adaptation, and finally the overall integration. This both reduces error accumulation within a single run and makes problems easier to locate quickly.

    3. Use guardrails to control cost. Set a maximum number of steps, a maximum runtime, and a cost cap for the assistant; when a limit is reached, stop immediately and output the current progress and unfinished items so a person can take over. The configuration below is illustrative only; parameter names differ across platforms:

    1. run_policy:
    2. max_steps: 120 # Maximum number of tool-call steps
    3. wall_clock_limit: 6h # Wall-clock time limit per run
    4. token_budget: 400k # Context and generation token budget
    5. cost_ceiling: 50 # Cost ceiling per run
    6. verification:
    7. build: required # The build must pass
    8. tests: required # All existing tests must pass
    9. on_limit_reached: stop_and_report # Stop and output a progress report when the limit is hit

    4. Write the acceptance criteria into the task description. The more specific the requirements are, the less rework the assistant needs. Requirements can directly include executable acceptance commands and boundary constraints, as shown below:

    1. Task: Add a "Dark Mode" toggle to the settings page
    2. Constraints:
    3. - Do not modify existing interfaces of the shared component library
    4. - The minimum target OS version is V1 (keep consistent with the current project)
    5. Acceptance:
    6. - The build command `build` succeeds
    7. - All unit tests `test` pass
    8. - After the toggle is switched, the app keeps the last choice after a restart

    Constraints such as the target system version should be filled in according to the actual state of the project.

    5. Build a reproducible evaluation sandbox. Teams can set up an isolated environment in the cloud that matches their own tech stack, for batch evaluation and comparison of different solutions:

    • Isolation and reproducibility: Use a container platform to create an independent, reproducible run environment for each task, avoiding interference between tasks.
    • Result retention: Use object storage to save code changes, build artifacts, and test reports so they can be reviewed later.
    • Process tracking: Use logging and monitoring/alerting to track task status, time distribution, and cost consumption, and to catch timeouts or budget anomalies promptly.

    General cloud capabilities from platforms such as Baidu AI Cloud can support building this kind of sandbox environment.

    6. Establish an internal benchmark and track it continuously. Public leaderboards only offer a reference; teams should draw tasks from their real requirement pool and build a small evaluation set that fits their own business. When evaluating, do not look only at “how many passed,” but also compute metrics such as cost per pass and manual rework time. The following Python code is illustrative only:

    1. def evaluate(runs):
    2. """runs: list of run records, one per task"""
    3. n = len(runs)
    4. passed = sum(r["passed"] for r in runs)
    5. total_cost = sum(r["cost"] for r in runs)
    6. return {
    7. "pass_rate": passed / n,
    8. "avg_completion": sum(r["completion"] for r in runs) / n,
    9. "avg_hours": sum(r["hours"] for r in runs) / n,
    10. "cost_per_pass": total_cost / passed if passed else float("inf"),
    11. }

    Conclusion

    Mobile-oriented coding benchmarks move evaluation from “is the code written well” to “can the engineering task be delivered,” using the four dimensions of pass rate, average completion, average time, and cost per run to sketch the real capability boundary of intelligent coding assistants. The trade-off between “high completion, long runtime, high cost” and “low cost, fast pace” is not a simple matter of better or worse, but a comprehensive response to the characteristics of the task, budget constraints, and response-time requirements.

    For developers and teams, the rational approach is this: first clarify your own task types and acceptable cost range, then use sensible task decomposition, cost guardrails, and reproducible evaluation sandboxes to embed intelligent coding assistants into the development workflow—bringing technology selection back to engineering fundamentals.