Long-Horizon Coding Benchmark Leaderboard Update: Pass Rate, Completion, Latency, and Cost
This article breaks down a recent leaderboard update for an AI coding benchmark focused on mobile app development, where a new-generation model debuted at a 24.0% task pass rate and 82.3% average completion, placing sixth. It explains why long-horizon coding tasks differ fundamentally from everyday code completion, interprets the four key metrics (pass rate, completion, latency, and cost), and argues that a doubled pass rate cannot be judged from a single number. It then lays out a practical methodology for enterprises to build their own long-horizon coding evaluation: verifiable task sets, reproducible sandboxes, uniform cost-and-time tracking, cost decomposition, and routine regression testing. Readers will learn how to turn leaderboard scores into a grounded, scenario-based model-selection strategy.
1. Leaderboard Update: Four Key Metrics of the New-Generation Model
In the latest round of benchmark testing for AI coding capability in mobile app development, several new models were added to the leaderboard. On its first appearance, a new-generation model achieved a 24.0% task pass rate and 82.3% average task completion, ranking sixth on long-horizon coding tasks. The remaining key figures:
- Generational comparison: The previous-generation model’s pass rate was only 12.0%; the new generation is nearly double.
- Latency: Average time for a single full test run dropped from 66.2 hours to 27.4 hours, a reduction of about 59%.
- Cost: Average cost per run dropped from $418.3 to $317.4, a reduction of about 24%.
- Top of the leaderboard: The top-ranked model’s pass rate is 40.0%; there is still a clear gap between the leaders and sixth place.
- Cost-efficiency contender: Another low-cost model has a pass rate of 17.3%, ranking ninth. Its per-run time is only 12.0 hours at a cost of about $9.9, less than 3.2% of the new-generation model’s test cost.
What do these numbers tell us? The improvement is cumulative: the pass rate doubled, while latency fell to less than half and cost dropped to three-quarters of the original. This looks more like a system-level improvement in “stronger capability, higher unit efficiency” than a result achieved simply by throwing more compute at the problem. But leaderboard scores do not equal production readiness. At least three facts deserve attention:
- Even the top model solves only 40% of tasks; long-horizon coding tasks remain far from reliable automation.
- The lowest single-run cost does not mean the lowest total cost per solved task.
- Leaderboard tasks differ systematically from enterprise codebases; selection must be verified against your own data.
Below, I first explain why long-horizon tasks are hard, then break down each metric, and finally give a practical evaluation method and selection strategy.
2. Long-Horizon Coding Tasks: Not the Same as Everyday Code Completion
Everyday code completion usually produces snippets within a single file or function, and developers can judge correctness at a glance. Long-horizon coding tasks instead require the model to independently complete a full delivery unit like a junior engineer: read requirements, understand existing code, modify multiple files, run builds and tests, analyze errors, and iterate on fixes until all acceptance checks pass. The sources of difficulty fall into five points:
- Error accumulation: An early wrong assumption (e.g., misjudging a call chain) propagates along the change chain and only surfaces at acceptance, when locating and rolling back is far more costly.
- Complex state: A task spans multiple files and versions; a failure may stem from uncleaned intermediate state, uninstalled dependencies, or an inconsistent environment, rather than the model “not knowing how to code.”
- Context pressure: The codebase far exceeds the model’s context window. How to retrieve relevant files, compress history, and keep key constraints from being lost directly affects success or failure.
- Dense tacit knowledge: Build methods, code style, test conventions, and hidden dependencies cannot be inferred from the requirement description; they must be actively gathered from the repository.
- Cost grows over time: The more turns, the higher the accumulated context and tool-call costs; time budgets and resource limits must be set.
| Dimension | Single-shot code generation | Long-horizon coding task |
|---|---|---|
| Interaction | One input/output | Multi-turn autonomous execution, can call tools |
| Scope of changes | Single file or function | Multiple files, across modules |
| Feedback signals | Basically none | Compile, unit tests, static checks, runtime logs |
| Cost of failure | Low; manual replacement | High; errors propagate along the change chain |
| Evaluation method | Snippet comparison or manual review | End-to-end acceptance, judged by programs |
All the dimensions in the table point to one conclusion: evaluating long-horizon capability cannot stop at “is the code well written,” but must be measured by “was it actually completed and did it pass all acceptance checks.” This is exactly the core idea of benchmark pass rates.
3. Interpreting the Metrics: Pass Rate, Completion, Latency, and Cost
3.1 Task Pass Rate: A Strict Metric Scored on “All-or-Nothing”
In long-horizon coding benchmarks, the pass rate usually refers to “the proportion of tasks that fully meet the acceptance criteria out of all tasks.” Judgment is based on test results; acceptance criteria include successful compilation, all unit tests passing, and no new static-check warnings, all determined automatically by test scripts or the acceptance environment. This “all-or-nothing” design is closer to real delivery requirements than scoring by code-snippet similarity, but it also makes the pass-rate number inherently low. 24.0% means roughly three-quarters of tasks did not make it through the full journey.
When interpreting it, note the following statistical properties:
- The pass rate is a sample proportion; the smaller the sample, the larger the fluctuation in a single result.
- A single run’s result is affected by sampling randomness; averaging over multiple runs or reporting a pass-rate interval is more reliable.
- When comparing across versions, the task set composition must stay consistent; otherwise, differences in the numbers may come from changes in the problems rather than changes in the model.
3.2 Average Task Completion: How Far It Got, Not How Much It Got Right
Completion measures how far a task has progressed. If each task consists of several checkable milestones (e.g., “module compiles,” “new unit tests pass,” “no static-check warnings”), completion is usually computed as the proportion of completed milestones, then averaged across all tasks. It is a necessary complement to the pass rate. The pass rate answers “how many tasks succeeded,” while completion answers “for the failed tasks, how far from the finish line are they stuck.”
In this example, the pass rate is 24.0% but completion reaches 82.3%, indicating that most tasks have advanced to the middle-to-late stages, with failures concentrated in the final stretch, such as boundary cases not passing or regressions fluctuating. Under this distribution, a small improvement to the engineering details of the acceptance step could turn “just short” into “actually completed.”
from statistics import meandef summarize(runs: list[dict]) -> dict:"""Summarize the results of a single evaluation run.Each item in runs looks like:{"passed": True, "completion": 1.0, "wall_hours": 27.4, "cost_usd": 317.4}"""n = len(runs)if n == 0:raise ValueError("runs must not be empty")passed = [r["passed"] for r in runs]total_cost = sum(r["cost_usd"] for r in runs)solved = sum(passed)return {"pass_rate": mean(passed), # Pass rate: share of fully-passed tasks"completion": mean(r["completion"] for r in runs),"avg_wall_hours": mean(r["wall_hours"] for r in runs),"avg_cost": total_cost / n, # Average cost per task# Key metric: average cost per solved (fully-passed) task; undefined when nothing passes"cost_per_solved": total_cost / solved if solved else None,}
3.3 Latency and Cost: Resource Dimensions to Read Alongside Effectiveness
Latency and cost measure “how many resources it takes to complete a task.” Latency is usually measured in hours and is affected by the execution environment, degree of concurrency, and number of tool calls; cost is the metric closest to an enterprise budget.
More useful are the decomposition factors for long-horizon tasks:
- Task time ≈ number of tasks × turns per task × average latency per turn
- Task cost ≈ number of tasks × token consumption per task × unit token price
The new-generation model’s 59% latency reduction can be understood as a simultaneous compression of total turns and per-turn latency. It could be more efficient planning and self-correction reducing wasted turns, or faster tool calls and result reads, but the leaderboard information is not enough to determine the specific cause. Cost only fell 24%, which either explanation can account for:
- After the pass rate improved, the model invests more turns into some hard tasks that previously failed quickly, and average latency rises accordingly;
- The unit token price dropped.
Either way, latency and cost cannot be evaluated in isolation from effectiveness.
4. Why “Doubling the Pass Rate” Is Not Just One Number
First, a single run is subject to randomness. An autonomous coding agent samples from a probability distribution on every turn, and the quality of one run may be affected by an anomalous tool return. A single result is only a reference; multiple runs are needed for a stable comparison.
Second, rankings have an element of chance. Models with close scores may swap places across multiple evaluations. Whether there is a real gap between 1st and 3rd requires checking whether the intervals of multiple runs overlap. Likewise, generational comparisons hold only when the task set, execution environment, and scoring rules are consistent.
Third, the leaders still show a clear gap. The top model’s 40.0% pass rate versus sixth place’s 24.0% is a 16-percentage-point difference. Roughly estimating by pass rate and completion, the top model solves about 72% of tasks and sixth place about 54%, with the gap also reflected in completion. This shows capability is not distributed as a continuous, smooth gradient but has distinct tiers.
Fourth, leaderboard tasks do not equal enterprise tasks. Tasks designed for reproducibility and automatic scoring usually have clear interface boundaries and fairly complete documentation, whereas real codebases are full of historical baggage, implicit conventions, and cross-system dependencies. Leaderboard performance is the starting point of selection, not the conclusion.
5. How Enterprises Can Build Their Own Long-Horizon Coding Evaluation
5.1 Build the Evaluation Set from Your Own Tasks
Task design should follow three principles:
- Verifiable: Every task has an automated judgment script.
- Isolated: Every task runs in an independent sandbox.
- Graded difficulty: Progressing layer by layer from single-file fixes to cross-module refactoring.
It is recommended to manage the task list with a structured file for easy versioning and result tracking:
# tasks/sample_repo.yaml: example task listrepo: sample-service # repository identifierbase_commit: 7f3c2a1 # fixed baseline commit to keep results reproducibletasks:- id: fix_null_pointer # bug fixprompt: Fix the null pointer exception in the user profile endpoint when the nickname is emptychecks: [unittest, static_check]- id: add_rate_limit # feature developmentprompt: Add IP-based rate limiting to the login endpoint and provide unit testschecks: [unittest, build]- id: split_module # cross-module refactoringprompt: Split the user service into a standalone module while keeping the external interface unchangedchecks: [unittest, build, static_check]- id: optimize_query # performance optimizationprompt: Optimize the order-list query so that response time stays under 200ms with 100,000 recordschecks: [benchmark]
The example performance task above gives a quantifiable acceptance target; in real scenarios, the target values should be set by the team according to business needs. The task set should also report pass rates by category, such as bug fixes, feature development, refactoring, and performance optimization, to reveal a model’s strengths and weaknesses.
5.2 Prepare a Reproducible Execution Environment
Since the pass rate emphasizes “results only,” the execution environment must be clean, reproducible, and as consistent as possible across runs:
- Use containers to provide an isolated runtime for each task, destroyed after the run finishes.
- Pin the base image and dependency versions, and fix the random seed to avoid environment drift where “it passed last time but fails now.”
- Set a hard timeout and a cumulative resource cap for each task to prevent the agent from falling into repeated trial-and-error and endlessly consuming budget.
- Log tool calls, command output, and modified files to a logging service, so failure causes can be reviewed afterward.
Enterprises can also rely on general-purpose capabilities from cloud providers such as Baidu AI Cloud—container services, object storage, logging, and monitoring/alerting—to quickly build a scalable evaluation sandbox and observability system, and use monitoring alerts to promptly catch execution anomalies and sudden cost spikes.
5.3 Record Cost and Time Uniformly
It is recommended to record the following data for “each run”:
- Input and output token counts, the unit price of the model called, and the number of tool calls;
- Wall-clock time, i.e., the real time including waiting for tool execution.
On this basis, derive two metrics:
- Cost per task: The average cost of each run.
- Cost per passed task: Total cost divided by the number of tasks that passed.
def cost_per_solved(total_cost: float, total_tasks: int, pass_rate: float) -> float | None:"""Estimate the average cost per solved task from leaderboard-style data."""solved = total_tasks * pass_rateif solved <= 0:return None # no task passed, so the cost cannot be amortizedreturn total_cost / solved
5.4 Use Cost Decomposition to Locate Optimization Space
A model’s cost usually equals the sum of input tokens, output tokens, and cached-read tokens, each multiplied by its own price. Adding the pass rate to this gives a cost decomposition for “cost per solved task”:
- Input share: In long-horizon tasks, code, logs, and historical messages repeatedly enter the context, so input is usually the main cost item.
- Output share: Generated code, explanations, and plans count as output.
- Cache-read share: Sessions with a stable prefix can reuse the cache, reducing repeated billing.
With this decomposition, a fixed budget constraint can be broken into tunable parameters—for example, the maximum number of turns allowed per task—using a formula to constrain unit price, per-turn context size, and pass rate. For a budget of M dollars, N tasks, and a pass rate of P:
- The cost cap per task is C = M / (N × P);
- If the cache hit rate is low, with unit price p and roughly L input tokens per turn, the maximum allowed number of turns k is about C / (L × p).
This is a first-order approximation: it ignores the growth of context in later turns and output costs, so the result is conservative and suitable for quick estimates.
def max_turns(budget: float, tasks: int, pass_rate: float,price_per_token: float, input_tokens_per_turn: int) -> int | None:"""Estimate the maximum turns each task can afford under a fixed budget (first-order approximation)."""if not (0 < pass_rate <= 1):return Noneallowed_cost_per_task = budget / (tasks * pass_rate)return int(allowed_cost_per_task / (input_tokens_per_turn * price_per_token))
5.5 Establish Routine Regression Evaluation
Models keep iterating, and the evaluation set should become part of the continuous-integration pipeline:
- After swapping a model or adjusting prompts, run a fixed-size task subset and compare changes in pass rate and cost;
- When the pass rate rises but cost rises sharply too, use the decomposition factors to identify the source of the cost;
- Categorize and archive failed tasks one by one, such as planning errors, tool-usage errors, environment anomalies, or insufficient knowledge, and use this to improve prompts, tool design, or supplement repository documentation.
This “small steps, fast iterations” regression mechanism turns a one-off selection into long-term, trackable capability management.
6. Practical Points Beyond the Leaderboard
Match capability to the scenario, rather than chasing the highest score. For high-quality delivery scenarios (architecture design, complex bug fixes), prefer models with high pass rates, combined with a comprehensive judgment of completion, cost, and time. For high-volume repetitive scenarios (supplementing unit tests, interface adaptation, code migration), focus more on unit cost, where low-cost models have a more obvious advantage in per-run time and cost. A hybrid fleet is a common approach: a low-cost model handles bulk work and escalates to a higher-capability model for complex problems. This tiered idea is similar to process scheduling in operating systems, trading the high throughput of lightweight tasks for improved overall resource utilization.
Keep human review and regression testing in the loop. Tests only cover what can be checked automatically and cannot judge whether an approach is sound or whether it introduces security risks. Key changes still need human review and thorough validation in a testing or pre-release environment before merging.
Standardize context management and access control. Long-horizon tasks involve reading large amounts of code and executing commands, so follow the principle of least privilege: limit the accessible repository scope and executable operations, and mask sensitive information.
Evaluate effectiveness from a holistic throughput perspective. A low per-task pass rate does not necessarily hinder overall efficiency: a low-cost model completing 17.3% of tasks at a low unit cost is also acceptable output; a high-pass-rate model, though more expensive per run, may reduce rework enough that overall cost is not necessarily higher. Teams should use “the amount of work deliverable per unit time and per unit budget” as the ultimate measure, not just a single ranking.
7. Conclusion
This round of leaderboard updates sends three signals:
- The new-generation model doubled its pass rate on long-horizon coding tasks while latency and cost fell simultaneously;
- Long-horizon tasks remain a weak spot, with even the top model solving only 40% of tasks;
- The model with the lowest single-run cost is not necessarily the best value.
For enterprises, the leaderboard is just a reference coordinate; truly reliable capability judgment comes from your own task set, a reproducible sandbox environment, complete time-and-cost records, and routine regression evaluation. Consistently measuring the four metrics—pass rate, completion, latency, and cost—under the same set of rules, then combining scenario-based tiered selection, human-AI collaboration, and access control, is what turns model capability into stable R&D productivity.
