Evaluating AI-Assisted Mobile Development: Balancing Effectiveness, Time, and Cost

    This article explores the necessity of evaluating AI-assisted mobile development tools using real-world engineering tasks. It introduces four core metrics—pass rate, average completeness, average time consumption, and cost per run—and analyzes the engineering trade-offs among them. Additionally, it provides practical recommendations for translating evaluation results into tool selection decisions, setting up an internal evaluation workflow, and understanding the limitations of current benchmarks.

    1. Why We Need Engineering-Oriented Task Evaluations

    Large Language Models (LLMs) and intelligent programming tools are now capable of participating in application creation, feature development, code migration, and app transformation. However, general code benchmarks typically evaluate based on individual functions or algorithm problems, creating a significant gap from real-world engineering. Mobile application development involves UI layout, lifecycle management, permission models, multi-version compatibility, and dependency upgrades. These tasks often span multiple files and rely on an understanding of the project context. Therefore, evaluations based on real engineering tasks better reflect a tool’s actual value in development.

    The basic evaluation approach is to provide a set of long-horizon tasks for an AI agent to complete in an isolated environment, followed by automated checks and manual reviews to determine the results. The evaluation focuses not only on “whether it can be done” but also on how closely the result meets the requirements, how long it takes, and how much it costs.

    2. Four Core Metrics and Their Meanings

    2.1 Pass Rate

    The pass rate is the ratio of completed tasks to the total number of tasks. The criteria for passing typically include successful builds, passing tests, and functionality that meets the requirements. The pass rate reflects the end-to-end deliverability but is a binary metric, unable to distinguish between “just missing the mark” and “completely missing the target.”

    2.2 Average Completeness

    Completeness is a continuous metric calculated based on the proportion of acceptance checkpoints satisfied. Assuming a task contains ten acceptance points and the agent satisfies eight, the task’s completeness is 80%. Completeness compensates for the coarse granularity of the pass rate and is suitable for observing how close a solution is to being correct.

    These two metrics should be interpreted together. A low pass rate combined with high completeness usually indicates that the agent performs well in most phases but falls short in the final touches, such as handling boundary conditions or adaptation details.

    2.3 Average Time Consumption

    Time consumption refers to the wall-clock time from receiving the task to outputting the result. In long-horizon tasks, time consumption is affected by inference speed, the number of tool calls, failure retries, and waiting for human confirmation. Time consumption directly determines the iteration pace. If a requirement takes hours to yield a result, developers will tend to break the task into smaller pieces or limit the agent to partial work.

    2.4 Cost Per Run

    Cost per run includes model API fees, computing resource costs, and runtime environment overhead. During evaluation, cost typically increases with task scale and the number of retries. When comparing different solutions, a unified billing methodology is required—for example, whether cache hits and failed attempts are included—otherwise, the comparison will be distorted.

    3. Engineering Trade-offs Among Metrics

    The four metrics are not independent of each other. Common trade-offs include the following three categories:

    1. Quality vs. Time: Deeper reasoning and more self-checking steps usually improve completeness but increase time consumption.
    2. Quality vs. Cost: More powerful models or larger context windows often boost success rates but simultaneously increase the cost per run.
    3. Speed vs. Cost: Lightweight models respond quickly and cost less, but they are more likely to miss details in complex cross-module tasks.

    Comparing only a single metric easily leads to one-sided conclusions. A more reasonable approach is to calculate the unit effective cost, spreading the cost over the actually delivered workload:

    Unit Effective Cost = Cost Per Run ÷ (Pass Rate × Average Completeness)

    This formula assumes that failed tasks also incur costs and approximates completeness as the ratio of effective output. It is not a strict economic model, but it can quickly identify two extreme cases: “cheap but unusable” and “usable but too expensive.”

    4. Translating Evaluation Results into Selection Decisions

    Evaluation results need to be interpreted in the context of the team’s actual scenarios. Common decision paths are as follows:

    • For core modules with high delivery quality requirements, prioritize pass rate and completeness; time consumption and cost can be appropriately relaxed.
    • For high-frequency, fine-grained daily modifications, prioritize time consumption and cost per run, as long as completeness remains within an acceptable range.
    • For budget-sensitive teams, unit effective cost should be the primary sorting criterion, and a budget should be reserved for manual review.

    Evaluation conclusions are also time-sensitive. Model versions, agent frameworks, and task sets will change over time. Conclusions should be re-evaluated regularly and should not be based on a single past result for a long time.

    5. Practical Recommendations for Building an Internal Evaluation Workflow

    5.1 Task Set Design

    Tasks should be derived from real requirements, covering scenarios such as application creation, feature development, code migration, and refactoring. They should be labeled with difficulty and dependency scope. Each task should be accompanied by executable acceptance scripts to avoid relying solely on subjective judgment.

    5.2 Environment Isolation

    Each run should use a clean build environment with fixed dependency versions. Save runtime logs and intermediate artifacts to ensure reproducible results.

    5.3 Metric Aggregation Example

    1. for task in task_set:
    2. result = run_agent(task, env=isolated_env)
    3. passed = run_checks(result)
    4. completeness = satisfied_checks / total_checks
    5. record(task, passed, completeness, duration, cost)
    6. pass_rate = count(passed) / total
    7. avg_completeness = mean(completeness)
    8. unit_effective_cost = avg_cost / (pass_rate * avg_completeness)

    5.4 Manual Spot-Checking

    Automated checks cannot cover UI experience and code maintainability. It is recommended to spot-check a proportion of passed tasks, focusing on code structure, resource consumption, and security vulnerabilities.

    6. Infrastructure-Level Support

    The evaluation process typically relies on several general infrastructure categories. Container platforms can be used to isolate runtime environments, object storage can save build artifacts, logging services can record execution traces, and monitoring alerts can detect abnormal time consumption and sudden spikes in failure rates. By combining these capabilities, teams can transform evaluations from one-off experiments into sustainable, routine processes.

    7. Limitations to Note

    • Benchmark tasks cannot fully represent the complexity of a production business codebase; evaluation scores should serve as a reference rather than the sole basis.
    • Agent outputs are inherently random, and single-run results can fluctuate significantly. Multiple runs should be conducted to obtain statistical values.
    • The statistical methodology for cost and time consumption affects horizontal comparisons; metrics must be unified before comparing different solutions.