Mobile AI Coding Benchmark: Evaluation Metrics and Engineering Trade-offs

    This article explains how to read results from a public benchmark of AI coding configurations on mobile app development tasks. It compares pass rate, completion, runtime, and cost, contrasts a high-completion setup with a low-cost one, and offers guidance on evaluation pipeline design and task routing.

    A public benchmark for AI coding in mobile app development has recently been updated. It reports how several AI coding configurations perform on realistic engineering tasks. Unlike benchmarks that test single-point code generation, this one focuses on long-horizon tasks such as app creation, feature development, code migration, and app conversion. An AI agent must understand requirements, edit code, verify builds, fix tests, and iterate over an extended period. For this reason, pass rate alone does not show whether a solution is ready for production. Completion, runtime, and cost must be evaluated together.

    This article does not focus on a specific product. It groups the public results into two representative configuration types. One type prioritizes high completion and accepts longer runtimes and higher costs. The other prioritizes speed and budget, with a slightly lower pass rate and a much lower cost per task. By examining the engineering meaning behind these metrics, teams can build a more sound approach to evaluation and selection.

    1. Neutral Observations on the Benchmark Results

    Across 30 long-horizon tasks, one high-completion configuration achieved a 24.0% pass rate, 82.3% average completion, and 27.4 hours average runtime. A single benchmark run cost $317.4. A low-cost configuration achieved a 17.3% pass rate, 71.2% average completion, and 12.0 hours average runtime. A single benchmark run cost $9.9. Another configuration in the same batch reached a pass rate of about 28.7%.

    These results raise three points.

    1. Pass rate and completion are different measures. Pass rate usually requires every acceptance criterion to be met. Completion may be weighted by acceptance item and shows how much of the work was done. A configuration with high completion but a lower pass rate can advance most of the work but fail at final validation, edge cases, or integration.
    2. Longer runtime does not necessarily mean lower efficiency. In long-horizon tasks, time goes to planning, code search, building and testing, retrying failures, and rebuilding context. More thorough verification loops often raise completion but also increase average runtime.
    3. Cost differences may come from call volume and retry strategy. A benchmark run cost includes model calls, tool calls, build environments, failure retries, and human orchestration overhead. A low-cost configuration that reduces retries and verification depth gains clear speed and budget advantages. Its pass rate on complex tasks may suffer as a result.

    2. How to Interpret the Four Metrics

    1. Pass Rate: The Final Delivery Threshold

    Pass rate answers the question of how many tasks can be accepted directly. It is the closest measure to production delivery standards, but it is sensitive to task difficulty, the strictness of acceptance tests, and timeout settings. When reading pass rates, teams should also examine the task set’s composition. Does it contain mostly single-file changes or mostly cross-module migrations? Does it contain mostly new features or mostly fixes to legacy code? Under different task structures, the same pass rate can carry very different engineering meanings.

    2. Average Completion: Progress Capability

    Completion answers the question of how far a solution advances. For large migrations or complex feature development, a configuration with high completion can reduce manual takeover effort even when the final result does not pass. High completion can also hide risk. If the last 10% of the work involves permissions, data consistency, or compatibility, a failure there means the result cannot ship directly. Completion should therefore serve as a supporting metric, not a delivery metric.

    3. Average Runtime: The Real Pace of Long-Horizon Tasks

    The gap between 27.4 hours and 12.0 hours reflects differences in orchestration strategy. A high-completion configuration may run more cycles of editing, building, testing, and repair, and it may replan after failures. A low-cost configuration may reduce exploration cycles and focus on producing output quickly. For unattended batch processing, runtime directly affects queue length and feedback cycles. For interactive development, runtime affects the developer experience.

    4. Cost per Run: A Hard Constraint Under Budget Limits

    The gap between $317.4 and $9.9 shows that these configurations operate at very different cost levels. Cost governance should not rely on unit price alone. Teams should also calculate effective cost, which is total cost divided by the number of passed tasks, or the marginal cost of each acceptance item. If a high-cost configuration produces only a small gain in pass rate, whether that gain is worth paying for depends on task value and the cost of replacing the work manually.

    3. Engineering Trade-offs of High-Completion, Long-Runtime Configurations

    The core trade-off of a high-completion, long-runtime configuration is that it uses more computation and verification to reduce rework. In mobile engineering, tasks often involve project structure, dependency management, build configuration, UI logic, state management, and test cases. To proceed without human intervention, an agent must repeatedly read code, identify the affected scope, modify multiple files, run builds and tests, and fix errors based on logs. This process takes time by nature.

    The advantages are:

    • It suits complex migrations, cross-module refactoring, and pre-delivery audits.
    • High completion reduces the time needed to rebuild context manually.
    • More verification rounds expose integration issues earlier.
    • It demands strong long-horizon planning, and its output is closer to a state that a human engineer can take over.

    The costs are:

    • Each run is expensive, so it is poorly suited to indiscriminate batch trials.
    • Long feedback cycles can slow developers down.
    • Excessive retries can amplify wasted calls.
    • If acceptance criteria are unclear, long runtime does not necessarily lead to a higher pass rate.

    This type of configuration therefore fits tasks that are high in value, low in urgency, and strict in acceptance. Examples include compatibility checks before a version upgrade, pre-checks for large-scale code migrations, and root-cause analysis support for complex defects. For simple prototypes or low-risk batch tasks, a low-cost fast configuration is the better choice.

    4. Boundaries for the Low-Cost, Fast Configuration

    The low-cost configuration, with a 17.3% pass rate, 71.2% completion, 12.0 hours runtime, and $9.9 cost, shows clear advantages in speed and budget. It suits:

    • Quickly generating candidate solutions for manual screening.
    • Local changes with low risk and clear boundaries.
    • Daily assistance for budget-sensitive teams.
    • First-pass triage in large-scale tasks.
    • Development workflows that are sensitive to response time.

    Low cost does not mean low quality. The key is task tiering. Use the low-cost configuration for initial screening and drafts, then send high-value tasks to a high-completion configuration or to manual review. This approach raises overall throughput while keeping total cost under control.

    5. Recommendations for Designing an Evaluation Pipeline

    For benchmark results to guide selection, teams need a reproducible evaluation pipeline. The following illustrative pseudocode shows one way to structure it:

    1. benchmark_task:
    2. repo_snapshot: fixed code snapshot
    3. acceptance_tests: set of acceptance tests
    4. time_budget: per-task time limit
    5. cost_budget: per-task cost limit
    6. run_agent:
    7. plan -> edit -> build -> test -> repair
    8. record each tool call, runtime, cost, and failure reason per round
    9. metrics:
    10. pass_rate = passed tasks / total tasks
    11. completion = weighted ratio of passed acceptance items
    12. avg_time = total runtime / number of tasks
    13. avg_cost = total cost / number of tasks
    14. effective_cost = total cost / passed tasks

    When running evaluations, keep these points in mind:

    1. Fix the environment. Dependency versions, build parameters, and test data should be reproducible so that environment differences do not distort results.
    2. Stratify the task set. Measure single-point changes, cross-file features, migration and conversion, and fault repair separately.
    3. Collect full costs. Record tool calls, retries, and build resources, not only model calls.
    4. Classify failures. Distinguish planning failures, code errors, test failures, timeouts, and budget exhaustion.
    5. Spot-check results manually. Sample tasks with high completion but failed acceptance to judge whether the partial work is worth taking over.

    6. Deployment Strategy: Combining Configurations Based on Business Constraints

    In real engineering work, it is not advisable to rely on one configuration for every task. A better approach is tiered routing:

    • Send low-risk tasks through the low-cost fast path to produce drafts first.
    • Send medium- and high-risk tasks through the high-completion path, with more verification rounds.
    • For pass-rate-sensitive tasks, set budget gates and manual acceptance checkpoints.
    • For runtime-sensitive tasks, set timeouts and fallback strategies.
    • Build an observable evaluation environment with general cloud capabilities such as log services, monitoring and alerting, and container platforms. For example, Baidu AI Cloud offers general-purpose container platform, log service, and monitoring and alerting capabilities that can host resource isolation, run records, and anomaly notifications for an evaluation pipeline.

    The value of a public benchmark is not an absolute ranking. Its value is in helping teams understand the trade-offs among quality, speed, and cost across different approaches. High-completion, long-runtime configurations suit high-value, complex tasks. Low-cost, fast configurations suit initial screening and budget-sensitive scenarios. Only when pass rate, completion, runtime, and cost are placed in the same engineering ledger can a team make a technology selection that is explainable and reusable.