Mobile AI Coding Benchmarks: Verify the Metrics Before Choosing a Model

    Learn how to evaluate AI coding benchmarks for mobile development by checking sources, measurement scope, pass rates, completion scores, runtime, and cost. This guide also highlights three signals for assessing models on longer, multi-file tasks.

    Verify the Source Before Comparing Numbers

    Benchmark pass rates, runtimes, and costs are useful only when their measurement scope is clear. Before relying on a set of results, check the items below. If key information is missing, treat the numbers as directional evidence—not as a basis for purchasing decisions or project scheduling.

    Source and Measurement Checklist

    Copy this checklist into your review document:

    • Benchmark name and version
    • Evaluated model names, versions, release dates, and inference parameters, such as temperature and maximum output length
    • Task-set size, mobile platform coverage—Android, iOS, and cross-platform—and difficulty breakdown
    • Evaluation date and environment, including operating system version, SDK version, and whether tests used emulators or physical devices
    • Cost and runtime accounting, including currency, reporting period, and whether retries, builds, sandbox startup, and logging are included
    • Treatment of randomness, including runs per task and whether results are averaged across runs
    • Reviewer and review date

    Assign a confidence level based on the checklist:

    • High confidence: All seven items are available. The results can support initial model selection.
    • Medium confidence: One item is missing, but it is not cost or runtime accounting. Obtain the missing information before using the results for scheduling.
    • Low confidence: Cost or runtime accounting is missing, or two or more items are missing. Do not use the results directly for purchasing or scheduling.

    What the Four Metric Categories Measure

    All numbers in the following examples are hypothetical and illustrate calculation methods only.

    Metric Definitions and Scope

    Metric Definition Denominator Included Excluded Common misinterpretation
    Task pass rate Share of tasks that pass every acceptance criterion Total number of tasks All acceptance criteria Tasks that pass only some criteria Treating it as a measure of how close failed tasks were to passing
    Average completion score Average of the partial scores assigned to individual tasks Total number of tasks Measures such as the proportion of acceptance criteria passed; the scoring definition must be documented Undocumented bonus points Assuming a high completion score means the output is ready for production
    Average runtime per round Total execution time divided by the stated denominator Must specify whether this is tasks or execution rounds Must state whether retries, builds, emulator or sandbox startup, and logging are included Queue waiting time not counted in the measurement Looking only at the mean and overlooking long-tail timeouts
    Average cost per round Total cost divided by the stated denominator Must specify whether this is tasks or execution rounds Model usage, sandboxes, builds and tests, logging, and retries Human labor and rework Counting only model API charges

    Pass Rate Versus Completion Score

    Suppose 24 out of 100 tasks pass every acceptance criterion. The task pass rate is 24%. Separately, partial scores produce an average completion score of 61%.

    Read these metrics together. A high completion score with a low pass rate indicates that the model completed much of the work but did not satisfy all acceptance criteria. Pass rate alone does not distinguish a near-complete result from one with substantial work still missing.

    Runtime: Check the Denominator and the Long Tail

    Runtime reporting should include a distribution, not just an average. Suppose the same 100 tasks have the following per-task runtimes:

    Statistic Runtime, minutes
    Mean 9.8
    P50 6.5
    P90 14.0
    P99 38.0

    The mean is close to 10 minutes, but P99 reaches 38 minutes. With a pipeline timeout of 30 minutes, tasks in the slowest tail may time out—something the mean does not reveal.

    P50 is the runtime at or below which roughly half of tasks finish. P90 covers roughly 90%, and P99 covers roughly 99%. The exact proportion exceeding a 30-minute timeout cannot be determined from these summary statistics alone.

    Cost: Formula and Example

    Calculate per-task cost as follows:

    Per-task cost = initial-attempt model API charges + sandbox execution charges + build and test charges + log storage charges + number of retries × cost per retry

    Here, the cost per retry means the model API charges and build-and-test charges for one additional attempt.

    Confirm the currency and reporting period before calculating costs. This example uses Chinese yuan (CNY), and the reporting period is one complete benchmark evaluation.

    Suppose an evaluation includes 100 tasks:

    Item Cost, CNY Notes
    Initial-attempt model API calls 320 Average of CNY 3.20 per task
    Sandbox execution 180
    Builds and tests 610 Mobile builds are resource-intensive
    Log storage 15
    Retries 322 35 retries × CNY 9.20
    Total 1,447
    Cost per task 14.47 Total ÷ 100

    Counting only the initial model API calls gives a per-task cost of CNY 3.20. Including every listed item brings it to CNY 14.47, approximately 4.5 times as much.

    Three Signals to Check on Long-Running Tasks

    Long-running tasks involve changes across multiple files, dependency analysis, build validation, and recovery from errors. To assess whether a model can handle these tasks, examine three signals:

    1. Cross-file consistency: After changes, do references, types, and resource names remain consistent across related files? Run static checks before and after the build, and count unresolved references.
    2. Dependency decisions: Does the model correctly identify dependencies that need to be added or upgraded, without introducing libraries that conflict with existing versions? Compare actual changes in dependency files against the task requirements.
    3. Error recovery: After a build fails, can the model use the logs to identify the cause and fix it within a limited number of attempts?