How to Evaluate LLM Coding Agents? Benchmarking and Selection Practices for Android Development

    This article explores the shift in evaluating LLM coding agents from simple code generation to long-horizon engineering tasks. It breaks down four key benchmarking metrics—pass rate, completion rate, execution time, and cost—and analyzes the trade-off curves between aggressive and steady strategies. Finally, it offers practical guidance for development teams to build custom evaluation sets and select models tailored to specific Android development scenarios.

    1. From “Writing Code” to “Completing an App”: The Evaluation Paradigm Shift

    Early evaluations of LLM coding capabilities focused primarily on single-file function generation and solving algorithmic problems. While these tests reflect a model’s basic language understanding and code generation skills, they fail to answer the question developers care about most: Can a model independently complete a real-world application iteration task?

    Recently, major cloud providers and development platforms have introduced coding benchmarks tailored for real-world engineering scenarios. In mobile app development, these benchmarks typically categorize tasks into four types:

    1. App Creation: Building an application with a basic functional loop from scratch;
    2. Feature Development: Implementing new features in an existing codebase, such as adding a list page or integrating local storage;
    3. Code Migration: Upgrading old SDK versions or language features to new ones;
    4. App Conversion: Converting a project from one tech stack or architectural paradigm to another.

    The common characteristic of these tasks is their long-horizon nature: the agent must autonomously plan multi-step operations, read and write multiple files, handle dependency conflicts, run builds, and fix errors. Consequently, evaluation results have expanded from a single score to a multi-dimensional metric system.

    2. Four Core Metrics: How to Read an Evaluation Report

    A typical mobile development benchmark report usually includes the following metrics. Understanding their definitions is the first step in model selection.

    1. Task Pass Rate

    This refers to the proportion of long-horizon tasks where the agent “fully meets the standard.” Taking a typical scale of 30 tasks as an example, the pass rates of industry-leading models currently hover between 15% and 30%. This means that even the strongest models still experience numerous failures when independently completing real engineering tasks. Pass rate is the baseline metric for “can it get the job done,” and should be prioritized during selection.

    2. Average Completion Rate

    This metric measures how far a task has progressed. A model might have a low pass rate but an average completion rate exceeding 80%, meaning most tasks reach a “just one step away” state. For developers, a high completion rate means lower manual intervention costs—requiring only minor tweaks to deploy, rather than starting over from broken code.

    3. Average Execution Time

    Long-horizon tasks are measured in hours. To improve completion rates, some models execute more rounds of the build-test-fix loop, causing single-task execution time to exceed 20 hours. This raises the core question: What engineering trade-offs do high completion rates and long execution times reflect?

    4. Single Run Cost

    Cost is typically priced in USD and is influenced by the number of API calls, context length, and reasoning rounds. On the same benchmark, the single-run cost of different models can vary by an order of magnitude—some solutions cost hundreds of dollars per run, while others are kept under ten dollars.

    3. High Completion, Long Time, High Cost: A Reasonable Engineering Trade-off Curve

    Observing these metrics together reveals a clear trade-off curve:

    1. Strategy A: Aggressive — Short time, low cost, medium completion
    2. Few reasoning rounds, fast solution generation, accepting partial failures.
    3. Strategy B: Steady — Long time, high cost, high completion
    4. Multi-round self-verification, item-by-item fixing, pursuing final usability.

    The cost of the steady strategy is not wasted. In long-horizon tasks, agents must repeatedly execute builds, run tests, analyze errors, and roll back retries. Each verification round consumes tokens and time, but it yields a higher task closure rate. For critical modules requiring “generate once, maintain long-term,” this investment is worthwhile.

    The value of the aggressive strategy also holds true. In scenarios like prototyping, code review assistance, or small feature patches, response speed and cost sensitivity are far more critical than completion rate. Here, a solution costing around ten dollars and delivering results within ten hours aligns better with team interests than a hundred-dollar alternative.

    A practical selection framework:

    Scenario Priority Metric Applicable Strategy
    Independent dev of core modules Pass rate, completion rate Steady
    Rapid prototyping / Demo Time, cost Aggressive
    Large-scale code migration Completion rate + cost per task Steady, executed in batches
    Daily patches and reviews Time Aggressive

    4. The Impact of Agent Frameworks: Same Model, Different Performance

    It is worth emphasizing that benchmark scores are the combined result of the “model + agent framework.” The same model connected to different agent frameworks (including different tool calling strategies, context management methods, and self-reflection mechanisms) can show significant differences in pass rates.

    Common design elements of industry-standard agent frameworks include:

    • Tool Orchestration: Scheduling strategies for file reading/writing, command execution, and build triggers;
    • Context Management: History compression and key information retention mechanisms during long tasks;
    • Verification Loops: Whether compilation and testing are strictly enforced before submitting results.

    Therefore, when teams attempt to reproduce benchmark scores, they should maintain consistency with the agent framework used in the evaluation report; otherwise, the results are incomparable.

    5. Practical Recommendations for Development Teams

    Based on the above analysis, here are four actionable recommendations:

    1. Build a proprietary evaluation set. Public benchmarks serve as horizontal references, but teams should extract 10-20 real historical tasks from their own repositories to create a private eval set, comparing regressions using pass rate and completion rate.
    2. Bucket selection by task type. Different task types have vastly different requirements for model capabilities. Migration tasks, in particular, heavily test long-context and dependency analysis skills and should be evaluated separately.
    3. Incorporate cost into iteration metrics. Track the “completion rate increment per dollar” to avoid cost overruns caused by blindly chasing high-scoring models.
    4. Front-load manual review checkpoints. In high-completion solutions, manual intervention is concentrated in the final wrap-up phase. Defining acceptance criteria in advance (compilable, tests passed, compliant with standards) can significantly shorten the final manual phase.

    6. Conclusion

    The value of real-world engineering benchmarks lies in restoring “model coding capability” to “model engineering delivery capability.” The four metrics—pass rate, completion rate, time, and cost—jointly outline an engineering trade-off curve: there is no omnipotent solution, only choices that match the scenario. For development teams, rather than chasing leaderboard rankings, it is better to understand the strategic differences behind each number. By combining your own task budget constraints and time windows to build your own evaluation and selection system, you unlock the true value of benchmark testing for frontline developers.