# Long-Horizon Coding Benchmarks Compared: How Pass Rate and Cost Trade Off
This article breaks down a public head-to-head evaluation of long-horizon coding agents on mobile application development tasks, and what its numbers mean in practice. It covers why short-horizon benchmarks such as function completion and unit-test passing fail to predict real delivery, how long-horizon benchmarks are constructed and scored, and how a 30-task run produced a 24.0% pass rate at roughly $317 per run against a 17.3% pass rate at roughly $9.9 per run. You will find a breakdown of completion rate versus end-to-end pass rate, three ways to read cost (marginal cost per percentage point, cost per delivered task, and cost per percentage point overall), guidance on routing tasks between lightweight and high-reasoning models by risk, and a sample budget-constrained runner in Python. If you are evaluating coding agents for production use, this should help you build your own regression set instead of extrapolating from a leaderboard.
1. Why Real Engineering Tasks Are Hard to Benchmark for Long-Horizon Ability
One benchmark run completed 30 long-horizon tasks, with the slowest configuration averaging about 27 hours per run and exceeding $300 in cost per run. Another approach finished in 12 hours for less than $10. According to a public head-to-head report shared in a mobile OS developer community, published account, original links, and timestamps should be taken from the source page itself; if the results inform a formal procurement decision, go back to the raw data and the task versions.
The most interesting part of that comparison is not the runtime or the cost in isolation. Two configurations with roughly a 30x cost difference ended up separated by less than 7 percentage points in pass rate.
Traditional code generation benchmarks focus on short-horizon work: completing a function, making a handful of unit tests pass. Real projects require delivering something that actually runs. It has to install and launch in an emulator or on a physical device, behave correctly under interaction, and pass the existing regression suite. Mobile application development makes this especially demanding:
- Structurally complex: UI, business logic, data access, dependency configuration, and build scripts are tightly coupled.
- Long delivery chain: compile, package, install, launch, and interaction verification are all mandatory. A failure in any single stage means no deliverable.
- Heterogeneous configuration: UI markup, build manifests, string resources, and program code coexist, and changes must stay consistent across files.
- Varied runtime environments: different OS versions, screen sizes, and permission policies can all produce builds that compile but fail at runtime.
- High feedback latency: each verification round involves compilation, installation, and UI interaction, which is far slower than a unit test.
These characteristics are why short-horizon benchmark scores do not reliably predict long-horizon performance. What a long-horizon coding evaluation actually measures is the ability to keep driving a multi-step plan forward and to self-correct based on failure feedback.
2. How a Long-Horizon Benchmark Is Constructed and Scored
This benchmark targets mobile application development and covers four task categories: application creation, feature development, code migration, and application conversion. Following common industry practice, its mechanics can be understood as:
- Task formalization: each task has a defined starting state, such as an empty project or an existing one, plus a goal that can be checked automatically.
- Sandboxed execution: the agent works in an isolated environment with access to a shell, file read/write, build, and test tools, and advances autonomously over multiple turns.
- Automated acceptance: after a successful build, the system runs tests, launches the application, and executes interaction scripts. Success is only recorded if all of them pass.
The evaluation drives different models through different execution frameworks. An execution framework is best understood as the outer scaffolding around the agent, responsible for prompt organization, tool dispatch, context management, and result verification. Any single score is therefore a joint result of model capability × scaffolding design × runtime environment. When comparing across leaderboards, remember that task sets, denominators, scoring criteria, and environments may differ. Do not extrapolate a percentage from someone else’s leaderboard directly onto your own project.
3. What the Leaderboard Data Actually Signals
For neutrality, the configuration that achieved a 24.0% pass rate is referred to below as Model A, and the one that achieved 17.3% as Model B. A third entry, Model C, is a short-thinking configuration that reached a 28.7% pass rate, ahead of two higher-priced candidates. Several general-purpose flagship models also took part in the evaluation and scored above Model A, but still below Model C.
| Metric | Model A (long-iterating) | Model B (lightweight) | Gap |
|---|---|---|---|
| Pass rate (30 tasks) | 24.0% | 17.3% | +6.7 pp |
| Average completion | 82.3% | 71.2% | +11.1 pp |
| Average runtime | 27.4 hours | 12.0 hours | ~2.3x |
| Cost per run | ~$317.4 | ~$9.9 | ~32x |
1. From leaderboard rank to agent combinations. Between two benchmark runs, a team assembled a multi-role agent combination with generate, review, and code roles, and achieved a 5/5 pass on one task. This shows that a single model’s leaderboard position does not represent the system’s ceiling. However, that conclusion currently rests on a single sample and should be treated only as preliminary evidence pending larger-sample validation. In a multi-role setup with a division of labor across generation, review, and coding, a strong reasoning model handles planning and gatekeeping while specialized models handle execution, and the overall result may exceed any linear combination of the individual models.
2. Pass rate is still the ceiling. Even Model C, at 28.7%, means roughly 70% of long-horizon tasks cannot be delivered in one pass. Before positioning an agent as a “delegable executor,” accept that at this stage it still needs a human fallback. Core business functionality should not depend on an autonomous agent completing it in a single pass.
3. High completion does not mean high usability. Model A’s 82.3% average completion sits far above its 24.0% pass rate. In other words, most tasks were driven to a fairly complete state, yet a 24.0% pass rate also means roughly 76%, close to 80%, of tasks could not pass end-to-end acceptance. Likely causes include:
- individual failing test cases;
- unstable UI element locators;
- timing or concurrency issues;
- environment dependency conflicts in the target project.
This means treating “completion” as a procurement metric will substantially overstate actual output. Only end-to-end passing counts as deliverable.
4. Runtime and cost define the boundary of applicability. Model A costs about 32x Model B per run and takes about 2.3x as long, for a pass rate only about 6.7 percentage points higher, a relative improvement of roughly 39%. To keep the cost discussion unambiguous, look at three separate measures:
- Marginal cost: for Model A relative to Model B, each additional percentage point of pass rate costs roughly $46, calculated as
(317.4 - 9.9) ÷ 6.7 ≈ $46. - Cost per delivered task: Model A delivers about 7.2 tasks per complete run, or roughly $44 per task; Model B delivers about 5.2 tasks, or roughly $1.9 per task.
- Average cost efficiency: dividing total run cost by pass rate gives roughly $13.2 per percentage point for Model A and roughly $0.6 per percentage point for Model B.
Under this framing, Model A’s 27.4 hours is best read as exploratory spend at the capability frontier, not as a routine development expense. Model B, at less than a tenth of the cost and about half the runtime, achieved roughly 70% of Model A’s pass rate. For most routine development work, the lightweight option is likely the better value. Only for core functionality where the choice is effectively “ship or do not ship at all” is it worth reassessing the marginal value of the high-cost option.
Note: all figures above come from a single head-to-head evaluation. Task difficulty distribution, scaffolding version, and runtime environment all affect the numbers materially, and none of them should be extrapolated directly to your own project.
4. What Sits Behind High Completion and Long Runtime
1. The optimization target determines agent behavior. An agent’s scheduler typically aims to reduce failures and raise task completion, so it tends to “exhaust all options”: recompiling repeatedly, taking screenshots repeatedly, swapping implementation approaches until it passes or runs out of budget. The stricter the goal, the longer the iteration, and the higher the runtime and cost. This is the same class of tradeoff as “maximizing recall necessarily sacrifices latency” in retrieval systems.
2. Cost follows a long-tail distribution. Total runtime and total spend are usually dominated by a small number of difficult tasks: simple ones converge in one or two rounds, while complex ones may burn dozens of rounds of trial and error. This resembles a few slow requests inflating tail latency across a system, which means averages alone underestimate real risk. You need to observe p95 runtime and the per-task cost ceiling alongside them.
3. “Thinking deeper” and “thinking longer” are different things. The lead held by a short-thinking model like Model C shows that on long-horizon tasks, planning quality, accuracy of tool invocation, and error recovery sometimes matter more than simply thinking longer. Ineffective long reasoning chains only add cost linearly and do not necessarily convert into a higher pass rate.
4. Track “deliverable tasks per dollar.” On this dataset, Model A delivers about 7.2 tasks per complete run and Model B about 5.2, meaning roughly $44 versus roughly $1.9 per delivered task, a difference of about 22x. For one-off, low-risk changes with a human fallback available, prefer the low-cost option. For high-value functionality with strong dependencies that must pass end-to-end, then consider the high-cost, long-iteration option.
5. Human-AI collaboration is the reasonable form for now. Position the AI as a “tireless junior engineer,” and borrow from code review practice by layering the review:
- automated gates handle build, static checks, tests, and UI smoke checks;
- peer agents review each other’s work to surface defects;
- a senior engineer makes the final call.
5. Turning Leaderboard Results into a Selection Strategy
1. Build your own regression set. Official leaderboard tasks may not map to your business. Pull 30–100 tasks from your real requirement pool, file them under creation, iteration, migration, and repair, and write an executable acceptance script for each so you have a repeatable, comparable baseline. Without your own regression set, a leaderboard is only a reference, not a procurement basis.
2. Route by task tier instead of applying one rule to everything. Borrow the “planner + executor” organizational pattern: a strong reasoning model decomposes plans and reviews designs, while a cost-efficient model handles bulk execution. A typical routing policy looks like this:
- low-risk boilerplate, copy, and resource edits go to a lightweight model;
- anything touching architecture, data migration, or cross-module refactors goes to a strong reasoning model with a stricter budget cap;
- new feature development starts with a usable version from the lightweight model, then brings in a review agent for iteration and polish.
The code below is illustrative, and the model names are placeholders. In it, agent.step, verify, and escalate_to_human are illustrative interfaces that your platform may provide or that you can replace with your own implementation.
def route_task(task, risk: str):# Light tier: low cost, short runtime, suited to boilerplate and local editslight = {"model": "model-small", "budget_usd": 1.0, "max_turns": 30}# Reasoning tier: stronger capability, but significantly higher cost and runtimeheavy = {"model": "model-large", "budget_usd": 20.0, "max_turns": 100}return heavy if risk == "high" else lightdef run_with_budget(task, cfg):spent, turns = 0.0, 0while turns < cfg["max_turns"] and spent < cfg["budget_usd"]:result = agent.step(task) # Illustrative: one inference plus tool callspent += result.cost_usdturns += 1if verify(task, result): # Illustrative: build + test + UI smoke checkreturn result# Budget or turn limit reached: hand off to a human, keeping all contextreturn escalate_to_human(task, turns, spent) # Illustrative: human handoff interface
3. Make runtime and cost part of the acceptance criteria. In internal evaluation reports, record the following alongside pass rate:
- average runtime and p95 runtime;
- mean and maximum cost per task;
- human rework rate;
- deliverable tasks per dollar.
This avoids chasing only “how many runs passed” while ignoring delivery quality and cost overruns.
4. Improving the scaffolding usually pays off more than swapping the model. A uniform tool interface, structured error feedback, rollback-able version snapshots, and automatic return of build and test results all shorten ineffective iteration. This is the same principle as requiring structured output formats from large models: the clearer the constraints, the more stable the execution.
5. Build an evaluation pipeline that scales. Give each task an isolated build environment to avoid dependency conflicts, archive artifacts and logs uniformly, and wire runtime and cost metrics into monitoring and alerting. General-purpose cloud capabilities such as container platforms, object storage, logging services, and monitoring and alerting can all carry this pipeline. The key is to move evaluation from ad-hoc manual runs to infrastructure that can be operated continuously.
6. Common Pitfalls and FAQ
Is the top-ranked leaderboard entry automatically the right choice for my team?
Not necessarily. A leaderboard reflects performance on a specific task set, scaffolding, and environment. Teams should favor the option that delivers reliably on their own regression set at a controllable cost.
Does a high average completion mean the agent is close to production-ready?
That judgment does not hold. High completion only means tasks were advanced to a fairly complete state; whether the result is deliverable depends on the end-to-end pass rate. Model A’s 82.3% completion against a 24.0% pass rate is a textbook example.
Is lower cost always better?
It depends on the scenario. Low-risk tasks suit low-cost, short-runtime options. For core functionality where failure is expensive, paying more for a more stable delivery is a reasonable trade.
Is a multi-agent division of labor always better?
Not necessarily. It demonstrated the system’s ceiling on some tasks, but it may consume several times the runtime and cost. Whether to adopt it depends on business value, budget, and your acceptance bar.
Can I make a procurement decision straight from public leaderboard numbers?
Not recommended. At minimum, add your own task set, acceptance scripts, budget caps, and rollback mechanisms, then observe behavior over a sustained period.
7. Conclusion
The lesson from this comparison is not complicated: on long-horizon coding tasks there is no all-around champion, only the best fit for a given scenario. Collaborative division of labor between reasoning and coding has been demonstrated on a single sample so far and still needs validation at larger scale. High completion rates cannot hide the pass-rate ceiling. Runtime and cost determine whether an agent can enter everyday delivery workflows at all. For a team, the right move is not to ask “which model ranks first,” but to build your own task regression set, route work by risk tier, and use budget caps to keep long-tail cost under control. Leaderboards will keep being refreshed; this engineering approach stays reusable.
