AI Long-Horizon Coding Benchmarks: How to Read the Leaderboard and Choose a Model

    Long-horizon coding benchmarks now report far more than a pass rate—they expose completion, runtime, and cost, which turns model selection into an engineering decision. This article breaks down the four core metrics (pass rate, average completion, average runtime, and single-run cost), quantifies the tradeoffs between a high-completion, slow approach and a lightweight, cheap one using public data, explains why high completion can coexist with a low pass rate, and offers practical guidance on scenario-based selection, tiered routing, and building your own long-horizon evaluation harness.

    1. What the Leaderboard Update Signals: Long-Horizon Coding Moves into Engineering-Grade Evaluation

    A mobile development platform’s official developer account recently published a fresh set of scores for a long-horizon coding benchmark. The evaluated entries included two agent approaches newly added this round, plus the existing approach with the highest pass rate on the same leaderboard. The benchmark tasks cover real engineering scenarios such as app creation, feature development, code migration, and cross-platform conversion.

    The most important thing about this leaderboard is not the rankings but the fact that it published four metrics: pass rate, average completion, average runtime, and cost per run. These map respectively to outcome, process, efficiency, and economics. Looking at any single metric in isolation can lead to a partial—or even opposite—conclusion.

    For a team, choosing a model is an engineering decision. The real difficulty is this: is it worth paying several times, or even tens of times, more in time and cost to gain a few extra percentage points of pass rate? This article offers a neutral analysis based on public data, breaks down what the four metrics mean, quantifies the tradeoffs between approaches, and lays out practical methods for selection and for building your own evaluation.

    2. Side-by-Side Comparison of the Leaderboard Data

    The publicly disclosed data from this round compares three approaches as follows:

    Metric Scheme A (high completion, long runtime) Scheme B (highest pass rate) Scheme C (lightweight, low cost)
    Agent evaluated An approach built on a cloud engineering agent Not disclosed in the original leaderboard An approach built on a third-party open-source agent
    Pass rate 24.0% 28.7% 17.3%
    Average completion 82.3% Not disclosed 71.2%
    Average runtime 27.4 hours Not disclosed 12.0 hours
    Cost per run $317.4 Not disclosed $9.9
    Approx. in CNY ¥2,123 — ¥66.2

    Note: The original leaderboard did not disclose the full data for the remaining entries. The CNY amounts are conversions the original leaderboard made at the exchange rate at the time and are provided for reference only.

    The side-by-side comparison yields three findings:

    1. Pass rate: Scheme B is highest at 28.7%. Scheme A is above the other evaluated approaches but clearly below Scheme B. Not one of the three approaches exceeds 30%, which shows that long-horizon tasks are still far from “reliable delivery.”
    2. Cost and runtime: Scheme C’s cost per run is under 3.2% of Scheme A’s, its runtime is less than half of Scheme A’s, and it still achieves a 17.3% pass rate.
    3. Data completeness: Scheme A reaches 82.3% average completion yet only 24.0% pass rate. This contrast reveals that in long-horizon tasks, “how much was done” and “how much was done correctly” are two different questions.

    3. The Technical Meaning of the Four Core Metrics

    3.1 Pass Rate: Outcome-Oriented, but Amplified by the “Cliff Effect”

    An agent’s pass rate generally refers to the proportion of tasks, out of all tasks, whose final artifacts pass a predefined acceptance check. In coding benchmarks, acceptance is usually carried out by a set of automated checks, such as:

    • Whether the build succeeds;
    • Whether all functional test cases pass;
    • Whether the behavior after migration or conversion matches expectations.

    This kind of acceptance has an “all-or-nothing” quality: a single detail going wrong fails the entire task. So pass rate measures the probability of being “fully usable,” and it is far stricter than completion. When reporting or making decisions, it is worth annotating both the number of tasks and the confidence interval. This round compared two single-digit pass rates across 30 tasks, so the success or failure of a single task shifts the number by roughly 3.3 percentage points—small differences in ranking should not be over-interpreted.

    3.2 Average Completion: A Finer Process View, but Beware the “Completion Illusion”

    Completion is generally computed as a weighted ratio of the subgoals completed after a task is decomposed, and it measures how far an artifact is from “full delivery.” For example, a feature-development task might be broken into:

    • Data model;
    • Business logic;
    • UI interactions;
    • Error handling;
    • Tests.

    Scheme A completed 82.3% of the work on average, yet roughly three-quarters of its tasks ultimately failed acceptance. The intuitive explanation is that each task has only one or two critical defects left, but long-horizon tasks leave no room for “almost there.” When reading process metrics, teams should watch for the “completion illusion”:

    • Dashboards showing above 90% while delivery never actually happens;
    • Agents claiming “done” when the code cannot even compile.

    So completion is suited to process monitoring and defect localization, but not to being used on its own as a basis for acceptance.

    3.3 Average Runtime: A Direct Test of the Agent’s Efficiency Mode

    Average runtime is the mean wall-clock time to complete a single task, made up of chained steps such as planning, reading code, editing, building, testing, reading logs, and fixing again. Scheme A took 27.4 hours, while Scheme C took only 12.0 hours. Two typical efficiency modes emerge:

    • The “read more, think more” mode: invests more reasoning and thought, trying to get the change right in one pass.
    • The “edit and verify as you go” mode: iterates quickly and converges through multiple rounds of feedback.

    Neither is universally better, but runtime directly determines three things:

    • Feedback cycles;
    • Concurrency cost;
    • Whether a long pipeline can finish within its time budget.

    A pipeline that cannot complete even one iteration within a working day will struggle to support continuous integration.

    3.4 Cost per Run: A Compound Overhead of Tokens and Tool Calls

    Cost per run is the total expense of completing one round of the benchmark, composed of:

    • Input and output token costs;
    • Tool-call costs for code retrieval, building, testing, runtime diagnostics, and more.

    In long-horizon tasks, repeatedly reading large files and running full builds many times all push up the cost. Scheme A costs about ¥2,123 per run, while Scheme C costs about ¥66.2. What the two are really comparing is not just the model’s per-unit price, but the resource-use efficiency of the entire agent approach.

    4. Engineering Tradeoffs in the Data: Why High Completion Comes with Long Runtime

    4.1 Deriving Cost-Effectiveness from the Raw Metrics

    Recombining the four metrics yields derived indicators that sit closer to engineering decisions:

    • Cost efficiency = average completion ÷ cost per run
    • Time efficiency = average completion ÷ average runtime
    • Cost per pass = cost per run ÷ pass rate
    Derived metric Scheme A Scheme C Ratio
    Cost efficiency ~0.26%/USD ~7.19%/USD Scheme C is ~28x Scheme A
    Time efficiency ~3.0%/hour ~5.9%/hour Scheme C is ~2x Scheme A
    Cost per pass ~$1,323 ~$57 Scheme A is ~23x Scheme C

    Scheme A spent about 31 times the cost and 2.3 times the runtime, yet gained only 6.7 percentage points—a relative improvement of roughly 39%—in pass rate. This is a textbook case of diminishing marginal returns. So “high completion, long runtime” does not necessarily mean “low cost-effectiveness.” Scheme A’s value lies in pushing the pass rate into a higher band. For a delivery where a single failure causes significant loss, paying a bit more for certainty can be worthwhile; for fast validation and high-volume, broad tasks, a lightweight approach like Scheme C delivers better output per unit of input.

    4.2 Four Reasons High Completion Yields a Low Pass Rate

    Why did Scheme A’s 82.3% completion fail to translate into a higher pass rate? In long-horizon coding tasks, there are usually four reasons:

    1. Locally correct, globally mismatched: an individual module is written correctly but is incompatible with the existing architecture, its callers, or resource constraints. Such problems only surface at the integration stage.
    2. Inadequate testing and verification: tests were not run, or coverage was insufficient, so the agent never noticed the defects itself.
    3. Long-horizon attention decay: as the context grows ever longer, early constraints get forgotten and later edits overturn earlier correct implementations.
    4. Irreversible “sick commits”: the longer the runtime, the more exploration, trial and error, and rollbacks occur, and the final artifact may end up mixed with uncleaned debug code or half-finished pieces.

    This also explains why runtime rises together with completion and cost: the agent is doing more exploration but lacks an effective “stop-loss” mechanism.

    4.3 Four Decision Dimensions for Selection

    Selection cannot rest on pass rate alone; at least four dimensions should be evaluated:

    • Pass rate: determines whether the artifact can be used directly;
    • Cost efficiency: determines whether it can be used at scale;
    • Time efficiency: determines whether it can fit into a fast-iteration workflow;
    • Cost predictability: the more cost per run fluctuates, the harder it is to control the budget.

    Applied to concrete scenarios:

    Scenario Key constraint Metrics to prioritize Selection tendency
    Core module migration, cross-platform refactoring High failure cost, long timelines acceptable Pass rate, completion High-capability agent plus human review
    New app prototypes, feature validation Fast feedback Time efficiency Lightweight, low-runtime agent
    Large-scale batch changes (e.g., multi-module adaptation) Budget-sensitive, high volume Cost per pass, cost efficiency Low-cost agent, escalate and retry failed tasks
    CI/CD pipelines Strict time limits Average runtime and its stability Fast-responding agent with controllable runtime

    Whatever approach you choose, it is worth adopting a tiered routing strategy: first run everything through a lightweight approach, then hand the tasks that fail acceptance to a high-capability approach for a retry. This usually strikes a better balance between total cost and pass rate.

    1. # Illustrative: route tasks by difficulty and budget; tune parameters against your team's own benchmarks
    2. def route_task(task, candidates, budget):
    3. """candidates: [{name, pass_rate, hours, cost}, ...]"""
    4. remaining = budget
    5. for agent in sorted(candidates, key=lambda a: a["cost"]):
    6. # Start simple tasks on low-cost agents, reserving budget for harder tasks
    7. if task["difficulty"] <= agent["max_difficulty"] and agent["cost"] <= remaining:
    8. return agent
    9. remaining -= agent["cost"]
    10. return None # Fall back to manual handling when the budget runs out

    5. Practical Advice for Building Your Own Long-Horizon Evaluation

    Leaderboard scores are based on a public task set that differs from a team’s real codebase, tech stack, and acceptance criteria, so they can only serve as a starting point of reference. A more reliable approach is to build your own long-horizon evaluation system, roughly in four steps:

    1. Build a private task set: draw tasks from your real requirements backlog, covering new feature development, code migration, legacy-system adaptation, and more. Each task comes with a clear acceptance script, such as unit tests, integration tests, or build checks.
    2. Isolate the execution environment: use a container platform or cloud hosts to create a separate sandbox for each task and pin dependency versions. Store artifacts uniformly in object storage for easy tracing and comparison. This prevents cross-task contamination while making results reproducible.
    3. Establish multi-dimensional measurement: automatically collect pass rate, completion, runtime, and cost. Also record token usage, the number of tool calls and turns, and the distribution of failure reasons, in order to locate bottlenecks.
    4. Introduce human review: sample-review the “high completion but failed” tasks to summarize failure patterns and feed them back into improving the task set and acceptance scripts.

    Illustrative code:

    1. def evaluate(agent, tasks, timeout_hours=48):
    2. """Run long-horizon tasks in an isolated sandbox and return multi-dimensional metrics"""
    3. metrics = {"passed": 0, "total_progress": 0.0, "total_hours": 0.0, "total_cost": 0.0}
    4. for task in tasks:
    5. report = agent.run(task.spec, sandbox=task.sandbox, timeout=timeout_hours)
    6. passed = all(check(report.artifacts) for check in task.acceptance_checks)
    7. metrics["passed"] += int(passed)
    8. metrics["total_progress"] += report.progress if not passed else 1.0
    9. metrics["total_hours"] += report.wall_clock_hours
    10. metrics["total_cost"] += report.cost
    11. n = len(tasks)
    12. return {
    13. "pass_rate": metrics["passed"] / n,
    14. "completion": metrics["total_progress"] / n,
    15. "hours": metrics["total_hours"] / n,
    16. "cost": metrics["total_cost"] / n,
    17. }
    18. def compare(metrics_list):
    19. """Convert raw metrics into cost efficiency, time efficiency, and cost per pass"""
    20. result = {}
    21. for name, m in metrics_list:
    22. result[name] = {
    23. "cost_efficiency": m["completion"] / m["cost"],
    24. "time_efficiency": m["completion"] / m["hours"],
    25. "cost_per_pass": m["cost"] / m["pass_rate"] if m["pass_rate"] else float("inf"),
    26. }
    27. return result

    In the cloud, this evaluation pipeline is typically supported by a few general-purpose capabilities: a model service handles unified access and call metering, a container platform provides isolated sandboxes, object storage holds artifacts, a logging service records each execution step’s trace, and monitoring and alerting track changes in cost and failure rate. The large-model services offered by cloud providers such as Baidu AI Cloud can serve as the model-capability foundation for teams building their own evaluation and engineering pipelines.

    6. Common Pitfalls When Reading Leaderboards

    • Pass-rate tunnel vision: a difference of a few percentage points in pass rate is not necessarily statistically significant under a 30-task sample, nor does it reflect performance on your own codebase.
    • Ignoring the cost basis: leaderboard cost corresponds to a single complete benchmark run; in real production, the costs of retries, human intervention, and rework are often underestimated.
    • Confusing completion with deliverability: high completion does not mean it can be merged to the mainline—automated acceptance must be the standard.
    • Ignoring task-type differences: code migration and building a brand-new app demand different model capabilities, and an aggregate leaderboard cannot replace a small-scale trial run on your own scenarios.
    • Underestimating the knock-on costs of long runtime: longer runtimes stretch feedback cycles, tie up sandbox resources, and disrupt pipeline scheduling.

    7. Conclusion

    The real value of this leaderboard is that it decomposes the capabilities of long-horizon coding agents into multiple quantifiable and comparable dimensions. “High completion, long runtime” reflects an engineering tradeoff: spending more time and money in exchange for a higher probability of full pass; a lightweight approach, by contrast, covers a broader range of routine tasks at lower cost and higher speed. The smart move is not to chase a single leaderboard ranking, but to build a tiered-routing and self-hosted evaluation system based on task difficulty, cost of failure, budget, and time limits—so that every unit of compute is spent where it matters most.