AI Coding Agent Benchmarks: Capability, Speed, and Cost on Long-Horizon Tasks
A recent mobile app development benchmark put three AI coding approaches through 30 long-horizon tasks, and the results showed a clear pattern: capability, speed, and cost diverge sharply, with no option leading on all three. This article explains what the benchmark measures, why mobile app development is a genuinely hard target for AI coding agents, and how to read the resulting pass rate, completion score, runtime, and per-run cost figures. It walks through the mismatch between high completion and low pass rate, quantifies the marginal cost of each percentage point of pass rate, and then turns the public scoreboard into practical guidance: how to build a reproducible private benchmark, how to write task specifications, how to run an incremental verify-and-correct loop with round, time, and cost guardrails, and where human review is still mandatory.
1. Why Mobile App Development Is a Hard Benchmark for AI Coding
A recent mobile app development benchmark refreshed its results: three AI coding approaches were evaluated on the same set of 30 long-horizon tasks. The outcome had one distinctive feature — capability, speed, and cost pulled apart from one another, and no single option led on every axis.
The benchmark covers four categories of real engineering work:
- App creation: building a runnable, installable app from scratch.
- Feature development: implementing complete business features on top of an existing project.
- Code migration: moving code from one tech stack or framework to another.
- App conversion: porting an app across platforms while preserving business logic and user experience.
What makes these tasks difficult is that they carry full engineering weight:
- Long horizon: a single task spans requirements understanding, design, implementation, integration testing, and defect fixing. A locally correct stage does not equal a delivered result.
- Dependencies across many steps: code must not only be written but also compile, package, and sign under a unified build toolchain, touching resource files, manifest configuration, multi-language support, and other details that are easy to miss.
- Runtime behavior is hard to verify statically: UI rendering, permission prompts, and lifecycle management can only be confirmed in a real or simulated runtime environment.
- Security and compatibility constraints: privacy permissions, on-device data protection, and multi-screen adaptation all mean that “it runs” is still a long way from “usable and compliant.”
The evaluation target, therefore, is not simple code completion. It is whether an AI coding tool — an “agent” from here on — can autonomously plan, call tools, and keep correcting itself inside a real engineering workflow.
2. Reading the Metrics: Pass Rate Is Not the Same as Completion
2.1 Public Results at a Glance
Public information shows that a long-context agent built on an AI coding tool scored higher than the two other entries in the same round, but below the current top of the leaderboard. Runtime and cost for the remaining entries were not disclosed. To protect third-party information, the results below are de-identified:
| Case | Agent profile | Pass rate | Avg. completion | Avg. runtime | Cost per run |
|---|---|---|---|---|---|
| A | High completion, long runtime | 24.0% | 82.3% | 27.4 hours | USD 317.4 |
| B | Lightweight, fast, low cost | 17.3% | 71.2% | 12.0 hours | USD 9.9 |
| C | Current top score | 28.7% | Not disclosed | Not disclosed | Not disclosed |
Note: figures are compiled from public information and are used only to illustrate the evaluation methodology and the trade-offs involved. They are not an assessment of any specific product.
2.2 What Each Metric Measures
- Pass rate: the final verdict on whether a task reached the expected result. Outcomes are typically binary — pass or fail — which makes it close to a one-strike veto.
- Average completion: how far each task progressed, usually scored from 0 to 100 or expressed as a percentage. It is a continuous estimate of work delivered.
- Average runtime: the actual elapsed time from start to finish, which directly shapes the feedback cycle.
- Cost per run: the cost of the resources consumed in one complete run, normally the sum of agent inference cost and the associated tool-call cost.
Only together do these four numbers reconstruct a full picture of how capable an agent is, how fast it runs, and what it costs.
2.3 The Mismatch Between Pass Rate and Completion
Case A reached 82.3% average completion but only a 24.0% pass rate. Across a 30-task round, that is a gap of roughly 58.3 percentage points. If 100% completion is treated as 100 points and all tasks are weighted equally, the agent effectively completed about 17.5 tasks’ worth of work per round without converting it into passes. That difference can be read as the gap between process output and final outcome.
This mismatch is not unusual in long-horizon tasks. Common causes include:
- Final-stage problems left unfixed: the last round still blocked on a failing build, failing unit tests, or broken key interactions.
- Implicit requirements overlooked: UI details, edge-case branches, and compatibility work are easy for generic progress tracking to miss.
- Optimistic self-assessment: agents tend to treat a module as done once it is implemented, while strict acceptance criteria look beyond implementation.
3. The Trade-off in Depth: Why High Completion Did Not Buy a High Pass Rate
For tasks that scored high on completion but still failed, one minus the pass rate is a rough proxy for the share of tasks that were “almost there”: about 76.0% for Case A and 82.7% for Case B. In other words, most failures had already completed the bulk of the work, and the blockers clustered in the “last mile.”
At least five causes stand out:
- Final-stage defects and regression risk: in long-horizon tasks, defects tend to surface late, and a single local fix can introduce regressions elsewhere.
- Strict acceptance criteria: automated tests, build validation, and runtime checks in mobile projects amplify small deviations. One failed critical scenario fails the whole task.
- Differences in task complexity: if harder scenarios carry more weight in the task set, a high completion rate alongside a low pass rate may reflect task-set difficulty, and needs to be read together with the distribution of tasks.
- Insufficient verification signals: compilation and unit tests may pass while UI behavior and on-device behavior cannot be confirmed by tools, leaving them to manual review.
- Tension between exploration and convergence: autonomous exploration accumulates progress, but that progress may be spread across multiple non-converging paths or lost to excessive rework.
Case B, by contrast, shows a gap of about 53.9 percentage points between completion (71.2%) and pass rate (17.3%). It leans toward “move fast and deliver something verifiable early,” with a clear advantage in runtime and cost. But its 7.8-percentage-point pass-rate deficit versus Case A is equally worth noting: in scenarios that cannot be verified automatically, every failure still carries a real cost.
4. Quantifying the Trade-off: Are the Extra Cost and Time Worth It?
The original results did not report standard deviations or sample counts, so the conversions below are only for comparing orders of magnitude. They rest on the assumption that completion, cost, and runtime are roughly linear, and they do not describe how cost actually behaves in real projects.
4.1 Marginal Cost per Percentage Point of Pass Rate
Dividing cost per run by pass rate:
- Case A: 317.4 ÷ 24.0 ≈ USD 13.2 per percentage point
- Case B: 9.9 ÷ 17.3 ≈ USD 0.57 per percentage point
A difference of roughly 23x. Every additional point of pass rate costs Case B about 1/23 of what it costs Case A.
4.2 Cost per Successful Task and Time per Unit of Progress
Treating the pass rate as the share of successful tasks in a 30-task round:
- Cost per successful task:
- Case A: 317.4 ÷ (30 × 24.0%) ≈ USD 44
- Case B: 9.9 ÷ (30 × 17.3%) ≈ USD 1.9
- Runtime per percentage point of completion:
- Case A: 27.4 ÷ 82.3 ≈ 0.33 hours
- Case B: 12.0 ÷ 71.2 ≈ 0.17 hours
The two routes follow entirely different cost-efficiency curves. Case A spent roughly 23x the cost to gain about 1.39x the pass rate and about 1.16x the completion score; Case B took less than half the time and still reached roughly 70% of Case A’s pass rate.
Case C’s pass rate is 4.7 percentage points above Case A’s, but with no runtime or cost data, its price is unknown. This is common in leaderboard reading: the less complete the public information, the more easily a horizontal ranking is distorted by a single metric.
4.3 Where the Cost Difference Comes From
From general engineering experience, cost is driven by several factors together:
- Longer reasoning and larger context raise the cost of each individual call.
- More autonomous exploration and rework means more tool-call rounds.
- More frequent failed retries and rollbacks accumulate overhead.
27.4 hours for USD 9.9 implies that the agent spent a great deal of time on trial and error and convergence — a signature of the “capability first” route. It is worth stressing that cost per run measures a single evaluation run and cannot be converted directly into the development cost of a real project. Test maintenance, human review, and post-release quality costs belong in the same total.
5. From Public Benchmarks to a Reproducible Private Evaluation
A public benchmark is a starting point for selection, not the finish line. Teams should build their own evaluation system along six dimensions.
5.1 Build a Task Set That Mirrors Real Business Work
Draw representative tasks from the requirements backlog and the defect tracker, covering app creation, feature development, code migration, and app conversion, and annotate each with difficulty and acceptance criteria.
5.2 Standardize the Environment and Toolchain
Pin the build tools, dependency versions, emulator or device configuration, and network conditions so that results are comparable and reproducible.
5.3 Define Acceptance Rules Explicitly
- Acceptance should combine automated tests, build artifact checks, and where necessary human review — never “it runs, so it passes.”
- Record both pass@1 (passing on the first generation) and pass@k (passing at least once in k attempts) to separate capability from stability.
5.4 Control Statistical Noise
Repeat each configuration multiple times and track both mean and variance. Because long-horizon tasks can take tens of hours each, parallel execution and asynchronous job queues can shorten the overall evaluation cycle.
5.5 Establish a Baseline
Whenever the model, prompt template, or toolchain changes, re-run the same task set as a regression check, so that a local optimization is not paid for with an overall regression.
5.6 Retain Artifacts and Cost Data
Archive evaluation code, build logs, run results, and cost data to object storage, and track them continuously through log services and monitoring alerts to build a traceable data asset.
# Sample evaluation configuration for AI coding agents (illustrative)benchmark:task_set: mobile-dev-tasks-v1 # versioned in-house task setcategories: [app_create, feature_dev, code_migration, app_convert]repeats: 3 # runs per task, to control randomnessacceptance: # acceptance criteriabuild: required # must build successfullyunit_tests: required # must pass unit testsui_smoke: manual # key screens checked manuallysecurity_scan: required # permission and data security checksmetrics:pass_rate: true # pass ratecompletion: true # average completionduration_hours: true # average runtimecost_usd: true # cost per runbudgets: # budget guardrails to prevent wasted spendmax_cost_usd: 50max_duration_hours: 4max_retries: 2
6. Engineering Practice: Turning “Can Write Code” into “Can Ship”
Benchmark scores only reflect performance on a particular task set. Stable delivery requires an engineering mechanism around the agent.
6.1 Match Agents to Task Value
- Core modules under long-term iteration: prefer deeper exploration and higher completion, accepting a longer cycle and higher cost.
- Templated code, API integration, bulk refactors: lightweight, fast agents offer better cost-efficiency and are easier to parallelize.
- Migration and conversion tasks: have a lightweight agent produce the overall plan and skeleton first, then bring in a more capable agent to refine high-risk modules.
- Pre-release quality gates: for high-risk changes, combine a cost-controlled approach with human review.
6.2 Replace Free-Form Prompting with Specification-Driven Work
Fix the specification before the task starts, for example:
## Task specification- Goal: add an unread-message badge to the home screen- Input: unread_count returned by the message list API- Output: badge with unread count on the matching bottom-nav icon (show "99+" above 99)- Acceptance: build passes; no badge when unread is 0; fail silently on API error; related unit tests pass- Constraints: no new third-party dependencies; touch only files in this module
The more precise the specification, the more reliably the agent converges — and the more comparable the evaluation results become.
6.3 Verify Incrementally and Correct Automatically
Following the “plan, implement, verify” cycle, run a “static check → build → unit tests → smoke test” pass after each verifiable unit rather than waiting until the end. Feed failure logs and error messages back to the agent instead of triaging everything at once after the task finishes.
# Illustrative agent work loop (pseudocode)MAX_ROUNDS = 10feedback = task_spec # initial input: the task specificationfor round_id in range(1, MAX_ROUNDS + 1):patch = agent.generate(feedback) # agent produces the code changereport = run_checks(patch) # static check, build, tests, smokeif report.passed:return patch, report # acceptance met, loop endsfeedback = summarize_errors(report) # return failure details to the agentraise TaskFailed("acceptance not met within the maximum number of rounds")
At the same time, cap rounds, wall-clock time, and spend. When a limit is hit, stop and hand off to a human instead of getting stuck in an unproductive loop.
6.4 Keep Human Review at Key Checkpoints
Changes touching privacy permissions, data security, payments, or third-party service integration require human review. Parts of runtime behavior that cannot be verified automatically belong on a pre-release smoke-test checklist.
6.5 Harden the Engineering Pipeline with Cloud-Native Capabilities
- Queue evaluation jobs through a message queue, and have the container platform spin up isolated build and test environments on demand.
- Archive evaluation artifacts, logs, and cost data in one place, and track failure rates and cost fluctuations through log services and monitoring alerts.
- Baidu AI Cloud’s object storage, container platform, message queue, log service, and monitoring and alerting products can support building this kind of evaluation and engineering pipeline.
7. Conclusion: Balancing Capability, Speed, and Cost
The benchmark refresh sends one clear signal: on long-horizon engineering tasks, agents have split into two routes — “capability first” and “efficiency first.” The former achieves a higher pass rate and better completion at the price of significantly longer runtime and higher cost; the latter advances quickly at low cost, but still trails on pass rate under strict acceptance criteria.
For enterprise teams, choosing an agent should not come down to leaderboard position alone. Three questions matter more:
- What is the task worth? High-risk, long-cycle core modules justify the stronger capability.
- How fast can you accept feedback? The feedback cycle determines development tempo and how teams collaborate.
- How costly is failure? Steps that cannot be verified automatically require human gatekeeping and regression budget.
Calibrate public leaderboards against a private benchmark, constrain free-form generation with specifications, replace one-shot generation with incremental verification, and contain runaway cost with budget guardrails. Only when evaluation data genuinely informs engineering decisions do AI coding tools move from “impressive in a demo” to “reliable in delivery.”
