AI Coding Agent Benchmarks: Quality and Cost Tradeoffs in Long-Horizon Tasks

    Benchmarks for AI coding agents on mobile application development expose sharp tradeoffs between capability, runtime, and cost—especially on long-horizon tasks that span the entire development workflow. This article breaks down the four core metrics (pass rate, average completion, average runtime, and per-run cost), shows how to turn them into derived cost-performance indicators, and explains the engineering tradeoffs behind high-completion, long-running configurations. It then presents a scenario-based selection framework and a practical workflow—layered scheduling, execution guardrails, and a regression dashboard—to help engineering teams convert benchmark rankings into concrete selection and scheduling decisions.

    Introduction: Efficiency Is Decided by the Agent on Long-Horizon Tasks

    Over the past two years, LLM-based coding agents have moved from “code completion” to “autonomously finishing tasks.” They can read a codebase, modify multiple files, run commands, execute tests, and iterate based on feedback. Yet function-level generation benchmarks mainly test whether an agent can “write one function correctly,” and they struggle to capture real engineering work: understanding an unfamiliar codebase, aligning with implicit constraints, and debugging repeatedly until acceptance criteria pass.

    To close this gap, the industry has begun building agent benchmarks aimed at mobile application development. These benchmarks typically draw on a set of real engineering tasks—creating an app from scratch, adding a feature to an existing project, or migrating legacy code to a newer framework. During evaluation, the agent works inside an isolated build environment and attempts to finish each task within a limited budget, with results judged by predefined tests or acceptance logic. Most reports present four core numbers:

    • Task pass rate
    • Average completion
    • Average runtime
    • Per-run cost

    Recently, a mobile development community platform published AI coding benchmark results for mobile app development. The results show that different “execution framework + model” combinations diverge sharply across capability, speed, and cost. One class of combinations pursues one-shot success, reaching an average completion above 80%—at the price of multi-hour runtimes and per-run costs in the hundreds of dollars. Another class costs only a fraction of that, scoring about ten percentage points lower on completion, yet holding clear advantages in both time and budget.

    For engineering teams, the more important question than “who ranks first” is: what engineering tradeoffs lie behind this divergence, and how should they shape selection and scheduling decisions? This article follows that thread.

    1. Why Mobile App Development Is a “High-Difficulty Exam” for Agents

    Mobile application development is demanding for agents for five main reasons:

    1. Long horizon: A routine requirement usually touches multiple modules and files, moving through a full loop—understand the requirement → locate the code → implement → build → run and verify → locate defects → fix and regress.
    2. Strong platform constraints: The app must package successfully under the build toolchain. Touching system capabilities requires correctly declaring permissions and handling differences across OS versions. A single error in resource references, package names, or signing configuration can break the build or crash the app at runtime.
    3. Observability depends on runtime: Many problems surface only when the app actually runs—garbled layouts, unresponsive taps, crashes. The agent has to debug using simulators or physical devices.
    4. Many implicit specifications: UI design language, accessibility requirements, localized copy, and performance baselines (such as startup time and memory use) are usually not written in the code; they are enforced by human review.
    5. High acceptance cost: Acceptance requires automated building, packaging, installation and execution across multiple devices, and item-by-item verification through automated test scripts—taking minutes to hours.

    For these reasons, such benchmarks come close to the real situation of “having an agent stand in for a junior engineer.” The evaluation therefore splits into two task types:

    • Short tasks: small in scope with clear boundaries, such as adding a settings toggle.
    • Long-horizon tasks: spanning the entire development workflow, often involving dozens or more interdependent steps, with completion times ranging from tens of minutes to several hours.

    The high-runtime, high-cost phenomena discussed below appear mainly in long-horizon tasks.

    2. The Metrics: Different Meanings Behind Four Numbers

    Metric Definition Question it answers Common misreading
    Pass rate Share of tasks that meet all acceptance criteria, usually a one-vote veto Can it deliver a usable result in one go Ignoring the volatility caused by small task sets
    Average completion Mean completion score across all tasks, often computed across dimensions like feature implementation and test-pass ratio How far the result is from usable Confusing it with pass rate
    Average runtime Mean wall-clock time for a single task from start to finish How long you wait and debug Ignoring the agent execution framework and parallelism strategy
    Per-run cost Total cost of running the full benchmark once Budget threshold for evaluation and trial and error Ignoring retry and timeout consumption

    2.1 Pass Rate: A Task-Level One-Vote Veto

    Take one set of public results as an example: a combination achieved a 24.0% pass rate across 30 long-horizon tasks—roughly 7 of the 30 fully passed. With only 30 tasks, each task is worth about 3.3 percentage points, so a single pass-rate figure is easily swayed by chance and should not be over-interpreted.

    More importantly, pass rate measures the share of “fully usable” results, not the share of “partially complete” ones.

    2.2 Completion: A Continuous Signal of “Getting Close”

    In the same dataset, the average completion reached 82.3%, far above the 24.0% pass rate. This large gap shows that the combination has strong solution-generation and implementation ability: most tasks are brought very close to usable, only to be blocked at the final steps. Common causes include:

    • Implicit conventions left unmet;
    • Edge cases in tests left uncovered;
    • Behavior differences across OS versions or devices.

    Such results are better positioned as an “efficient draft generator,” paired with human or automated validation to fix the “last mile.”

    2.3 Runtime: A Direct Constraint on the Time Budget

    An average runtime of 27.4 hours means that completing one round of the 30-task benchmark takes roughly a month of human working hours. Even with concurrent scheduling to shorten the total, a wait of several hours per task remains hard to fit into a high-frequency iteration rhythm—multiple commits a day, urgent bug fixes, and the like.

    2.4 Cost: Turning Benchmarking into an Affordable Routine

    A per-run cost of $317.4 means teams can rarely afford to rerun the full benchmark often. By comparison, another combination completed the same benchmark at $9.9 per run, with a 17.3% pass rate, 71.2% average completion, and 12.0 hours average runtime—costing only about 3% of the former.

    Looking at per-run cost alone, the gap is about 32x. But once converted to “cost per successfully passed task,” the gap narrows considerably. Another model in the public results reached a 28.7% pass rate, higher than the high-completion combination above. This shows that pass rate does not rise monotonically with capability: under the combined influence of execution framework, reasoning strategy, and task characteristics, different rankings can emerge.

    2.5 Combined Metrics: From “Point Comparison” to “Cost-Performance Comparison”

    Rules for computing derived metrics

    Derived metrics are indirect metrics obtained by converting the original ones; they answer questions the original metrics cannot. Two principles apply:

    • Valid denominator: Dividing cost by the number of passed tasks only makes sense when at least one task passed; otherwise the result is meaningless.
    • Consistent scope: All metrics should come from the same evaluation round, the same environment, and the same batch of tasks.

    Derived metrics are also only valid for relative comparison within the same task set and the same time window; they cannot be carried over directly across different benchmark sets.

    Metric Formula Meaning Use case
    Cost per success Per-run cost ÷ pass rate Average cost to pass one task successfully Pay-for-results, outcome-oriented
    Cost efficiency Average completion ÷ per-run cost Completion gained per unit of currency spent Assistive generation, human-agent collaboration
    Completion density Average completion ÷ average runtime Completion achieved per unit of time Delivery-cycle sensitive
    Marginal cost per step Cost difference between two groups ÷ pass-rate difference Extra cost needed to raise pass rate by 1 percentage point Judging whether “spending more” is worth it

    Worked example using public results

    Compare the high-completion group with the low-cost group (call it “Group B”): the former has a 24.0% pass rate at $317.4 per run, the latter a 17.3% pass rate at $9.9 per run. Applying the formulas above:

    Comparison dimension Calculation Conclusion
    Cost per success ~$1,322 vs. ~$57 The former is about 23x the latter, not 32x
    Completion 11.1 percentage points higher 82.3% vs. 71.2%
    Completion density ~3.0 pts/hour vs. ~5.9 pts/hour The low-cost combination is about 2x
    Marginal cost per step ~$307.5 ÷ 6.7 points About $46 more per 1 percentage point of pass rate

    So “a 32x cost difference” does not mean “a 32x cost-performance difference.” The actual gap in cost per success is about 23x. Going further, if you focus only on the few extra tasks that get passed, the marginal cost is as high as about $46 per percentage point. That is the real price tag of the high-completion route.

    Calculation example

    A short script converts original metrics into derived metrics, making it easy to compare combinations side by side within a team:

    1. def derive(results):
    2. """results: each task contains passed (bool), completion (0~1), cost (per run)"""
    3. n = len(results)
    4. pass_rate = sum(r["passed"] for r in results) / n
    5. avg_cost = sum(r["cost"] for r in results) / n
    6. return {
    7. # average cost to pass one task successfully
    8. "cost_per_passed": avg_cost / pass_rate if pass_rate else None,
    9. # completion gained per unit of spend
    10. "cost_efficiency": sum(r["completion"] for r in results) / n / avg_cost,
    11. }
    12. def marginal_cost(cheap, strong):
    13. """Both inputs are {pass_rate, cost}; returns the extra cost per 1 percentage point of pass rate"""
    14. d_pass = strong["pass_rate"] - cheap["pass_rate"]
    15. d_cost = strong["cost"] - cheap["cost"]
    16. return d_cost / (d_pass * 100) if d_pass > 0 else None

    3. The Engineering Tradeoffs Behind High Completion and Long Runtime

    3.1 The Essence: A Search Process Under a Budget

    The agent’s execution on a long-horizon task can be abstracted as searching the “space of possible implementations” under a budget:

    • Search space: In practice, a given task usually has several viable implementations, each with its own tradeoffs.
    • Budget constraints: Time (per-task runtime), money (per-run cost), and context (how much code can be processed).
    • Evaluation function: A solution counts as successful only if it compiles, runs, and passes all acceptance tests.
    • Search strategy: The agent narrows the search range based on feedback.

    Raising the pass rate essentially means expanding the effective search range—reading the code more deeply, trying more solutions, running build-and-test cycles repeatedly, or using multi-model collaboration (review → implement → review again). This tends to drive a nonlinear rise in runtime and cost, which is exactly the signature of high-completion combinations.

    3.2 Why Mobile Long-Horizon Tasks Take Longer

    • Long build and test cycles: Mobile builds and device verification usually take minutes. Repeated over several rounds of the “build → test → analyze logs → fix” loop, the cumulative time easily reaches hours.
    • Localization needs multi-step inference: A UI anomaly may stem from layout constraints, resource references, lifecycle management, or data state; the agent needs multiple rounds of inference and experimentation to narrow it down.
    • Context must be reloaded repeatedly: Long tasks involve many files and logs, so as execution proceeds the agent must keep reading, discarding, and rebuilding context.
    • Tasks have dependencies: In “benchmark set” mode, the same model completes the 30 tasks in sequence, so each task’s runtime adds up to the overall time.

    3.3 Three Direct Implications

    Implication 1: Pass rate is highly sensitive to budget. More time and compute usually raise the pass rate, but with diminishing returns. A strong combination pushing the pass rate to 24.0% at high completion does not mean that an equal additional investment will approach 100% linearly; it may instead fall into a zone where marginal cost rises sharply while gains shrink.

    Implication 2: High runtime also means high failure cost. Long tasks not only take time—the sunk time cost of a single failure is high as well. In fast-moving teams, a multi-hour task that fails costs not just money but the waiting time. So a more sensible approach is usually not to “dump everything on the strongest model,” but to design differentiated execution strategies for different task types.

    Implication 3: The cost scope determines the conclusion. If “the cost of one benchmark run” is the only metric, the low-cost combination is nearly uncontested. But once you factor in “the total cost to reach a usable state”—retries of failed tasks, manual fixes, and rework time—the high-completion combination’s advantage appears. The core of engineering selection is precisely finding the best solution under a given cost scope for each task type.

    4. Selecting by Scenario: No Best, Only Most Suitable

    Based on the analysis above, you can build a selection framework around task type and team constraints:

    Scenario Priority metric Recommended strategy
    Budget- or latency-sensitive Per-run cost, completion density Start with the low-cost combination to produce a usable draft quickly
    Quality-first, long cycle acceptable Pass rate, average completion Use the high-completion combination for core tasks, with timeout and budget caps
    Large-batch repetitive tasks Cost per success Combine batch scheduling with result caching to cut repeated consumption
    High-value, low-fault-tolerance tasks Pass rate + human review Intensive validation plus human review and automated testing

    4.1 Layered Scheduling: Let Strong Models Handle Only the “Hard Problems”

    A scheduling pattern commonly used in practice is:

    1. Use a low-cost, fast combination with a short time cap.
    2. If the first attempt fails, hand the failed task, logs, and unfinished work to the high-completion combination.
    3. Only for tasks that still fail, arrange human intervention.

    Example pseudocode:

    1. def run_with_escalation(task, fast, strong, fast_budget, strong_budget):
    2. # Layer 1: low-cost fast attempt, abandon on timeout
    3. first = fast.solve(task, budget=fast_budget)
    4. if first.passed:
    5. return first
    6. # Layer 2: carry failure context, hand off to the high-completion combination
    7. return strong.solve(task, context=first.trace, budget=strong_budget)

    This “fast then strong” orchestration preserves both response speed and cost control while keeping a “one-shot” chance for hard tasks. Its essence is to allocate budget where it is most needed, rather than spreading it evenly across all tasks.

    4.2 Parallelism and Queuing: Engineering Constraints of Long Tasks

    Two points about scheduling long tasks are worth noting:

    • Concurrency determines total time: Even if a single task takes 27.4 hours, running all 30 tasks in parallel can sharply shorten the total—but it also pushes up instantaneous resource usage and the cost peak at the same time.
    • Cost and time are independent dimensions: Parallelism only changes time, not cost. Budget-constrained teams should optimize per-run cost instead—reducing ineffective retries, setting per-task cost caps, and reusing results from subtasks that already passed.

    5. Bringing Benchmarks into Engineering: A Reusable Workflow

    5.1 Build Your Own Task Set

    Public benchmarks reflect “general capability” but cannot cover a team’s private codebase and business conventions. Build a task set from internal real needs—recent bug fixes, historical refactoring requests—and define the acceptance criteria for each one (which tests must pass, which static checks must hold).

    5.2 Unify the Execution Environment

    All combinations must be evaluated in the same environment; otherwise the data is not comparable. Recommended components:

    • Containerized build environment: isolate dependencies and guarantee repeatability;
    • Device and simulator pool: cover different screen sizes and OS versions;
    • Unified agent execution framework: avoid misreading “framework differences” as “model differences.”

    5.3 Control Risk with Three Guardrails: Timeout, Budget, Retry

    1. # Pseudocode: guardrails for single-task execution
    2. run_with_guard() {
    3. task="$1"
    4. # Time cap: keep long tasks from dragging on indefinitely
    5. timeout 6h run_agent "$task" \
    6. --max-cost 20 \
    7. --max-retries 3 || mark_failed "$task"
    8. }

    Each guardrail serves a distinct purpose:

    • timeout limits wall-clock time;
    • --max-cost caps per-run spending, preventing runaway retries;
    • --max-retries controls how many times a failed task is retried.

    Once a limit is exceeded, the task is marked as failed and moved to a manual or escalation flow—avoiding the situation where a low-cost combination keeps burning money on hard problems.

    5.4 Build a “Regression Dashboard”

    Record each benchmark run’s pass rate, completion, runtime, and per-run cost, and turn them into trend curves. When a model or execution framework is upgraded, watch first whether the metrics degrade, to catch hidden regressions like “the new version is smarter, but also slower and more expensive.”

    5.5 Use Cloud Platforms for Elastic Scheduling

    • Use a container platform to spin up isolated environments quickly;
    • Use a task queue to distribute long tasks and smooth out resource peaks;
    • Use logging services and monitoring alerts to track the progress and anomalies of long tasks;
    • Use object storage to archive build artifacts and evaluation reports for review and audit.

    Cloud platforms generally provide these capabilities as standard product categories, and teams can combine them as needed.

    Conclusion: From “Benchmark Rankings” to “Engineering Decisions”

    AI coding benchmarks for mobile application development provide a three-dimensional “capability–time–cost” profile. High-completion, long-running combinations suit high-value tasks that must be “done right in one pass”; low-cost, fast combinations suit high-frequency scenarios that “draft first, then iterate.” What truly determines engineering efficiency is not a leaderboard rank, but whether a team can:

    • Use derived metrics to convert raw numbers into “cost-performance”;
    • Use layered scheduling to spend the budget where it matters;
    • Use guardrails and dashboards to turn benchmarking into a repeatable, monitorable daily engineering practice.

    Do these three things well, and the numbers on the leaderboard turn into deployable productivity.