Evaluating Coding LLMs: A Closer Look at the Three Main Benchmarks
Why public leaderboards often disagree with real-world coding assistant performance, what the three major benchmark categories actually measure, their structural flaws, and how to build a private evaluation set that matches your own codebase.
Evaluating Coding LLMs: A Closer Look at the Three Main Benchmarks
1. Why benchmark scores are becoming less trustworthy
When choosing an AI coding assistant for a development team, the most common approach is to compare a few capability leaderboards. Yet real-world experience often contradicts the rankings: a model that leads on a leaderboard may still edit the wrong files and miss boundary conditions when dropped into your own repository. The reason is not mysterious — the way public benchmarks are constructed, their data lifecycle, and their task granularity mean they can only reflect a single slice of capability.
The most widely cited coding benchmarks today fall into three categories: classic benchmarks for real repository issue resolution, harder benchmarks for long-horizon refactoring, and benchmarks for agent execution in terminal environments. Understanding the differences between these three is more valuable than memorizing a specific score.
2. Category one: capabilities and limits of the classic issue-resolution benchmark
2.1 How the tasks are constructed
This benchmark was introduced by an AI research institution in 2023 and has long served as an industry standard. Its tasks come from real issues and corresponding pull requests across a large number of open source repositories: each sample includes a repository snapshot, a natural-language description of the bug or requested change, the pre-fix state of the code, and the test cases used for judging. The model must locate the problem, modify the code, and ultimately make the tests pass.
Its “human-verified subset” version removes samples with vague descriptions, flaky tests, and ambiguous judging criteria through manual review, narrowing the set to a few hundred items and substantially improving the stability of results.
2.2 Two structural flaws
The first is judge error. For some samples, the tests are too sensitive to a specific correct solution, so equivalent implementations are marked as failures, systematically pushing scores down or up.
The second is data contamination. Because the tasks come from public repositories and are relatively old, the relevant content has very likely already entered training corpora, so models may “recall” rather than “reason out” the answers.
For exactly these reasons, the benchmark’s own creators have stopped treating it as a core evaluation standard. This points to a general rule: every public benchmark has a shelf life, and once it is widely cited, its discriminative power decays.
2.3 How to read saturation correctly
When the vast majority of models score above 80 on this type of benchmark, the metric is close to saturation, and the gaps between top models are compressed into the noise range. A lead of 0.5 points has no decision-making significance at this point. Saturation does not mean all models are equally strong; it means the test set can no longer tell strong from weak.
3. Category two: hard long-horizon refactoring benchmarks
3.1 Design orientation
To mitigate contamination and saturation, harder replacement benchmarks appeared in the second half of 2025. Their design has two key orientations:
- Lower contamination risk: the public subset and the held-out subset use strong copyleft-style licenses, making it difficult for the task content to be absorbed directly into general-purpose training corpora.
- Higher task granularity: each task requires modifying at least ten lines of code, and a substantial share of tasks require more than one hundred lines of change.
3.2 Score distribution and interpretation
On these benchmarks, most models score below 60, and only a very few top models exceed 60. Low scores are not an anomaly but a design goal: they restore discriminative power.
It is important to stress that such scores cannot be compared across benchmarks. A model that trails by a few points on a long-horizon benchmark may only be somewhat weaker at cross-file refactoring and dependency inference; that does not mean its everyday completion or single-function generation ability is worse. Placing scores from different benchmarks in the same table and ranking them is the most common misreading.
4. Category three: terminal agent execution benchmarks
Terminal environment evaluation targets a different capability: whether a model can, across multiple turns, invoke command-line tools, read and write files, install dependencies, and self-correct based on errors until the task is complete. What it tests is not “producing correct code in one output” but closed-loop execution and error recovery.
Typical failure modes include: being unable to self-correct after a mistyped command or wrong argument; repeatedly operating in the wrong directory; falling into infinite retries; ignoring non-zero exit codes; and performing destructive operations without confirmation. These problems are completely invisible on pure code generation benchmarks, yet they directly determine an agent’s usability in CI pipelines, environment troubleshooting, and large-scale migrations.
5. Building your own evaluation set
Public benchmarks are only good for initial screening; the final decision should rely on a private evaluation set drawn from the same distribution as your own codebase. A suggested way to implement this:
- Sample real tasks: pick bugs and feature requests from internal tickets that have complete descriptions and automated test coverage, keeping the size between 50 and 200 items.
- Fix the judging criteria: use test pass rate as the hard metric, supplemented by human review of code readability and the reasonableness of the change scope.
- Isolate and rotate: keep part of the tasks private and replace them periodically, so that prompts and workflows cannot be “memorized”.
- Track metrics in layers: separately record first-pass rate, average number of interaction rounds, average elapsed time, rollback rate, and cost per task.
A schematic evaluation-driven structure:
@dataclassclass Task:task_id: strrepo_snapshot: str # identifier of the code baselineissue_text: str # requirement or bug descriptiontest_command: str # test entry point used for judgingmin_changed_lines: int # minimum change-size constraintdef run_eval(model_client, tasks: list[Task]) -> dict:result = {"pass": 0, "rounds": [], "rollbacks": 0}for t in tasks:session = model_client.start(t.repo_snapshot)rounds = 0while rounds < MAX_ROUNDS:action = session.step(t.issue_text)if action.done:breakrounds += 1ok = session.run(t.test_command).returncode == 0result["pass"] += int(ok)result["rounds"].append(rounds)result["pass_rate"] = result["pass"] / len(tasks)return result
6. Recommendations for engineering implementation
Model capability is only one link in the chain. To gain stable returns, you need supporting engineering constraints: provide sufficient repository context retrieval for tasks; isolate the execution environment in a sandbox or container platform; record every interaction trace with logging and monitoring/alerting so failure modes can be reviewed; set human confirmation gates for high-risk operations; and fold evaluation results into continuous integration to form a regression baseline when models or prompts change.
7. Conclusion
When facing coding capability comparisons, the pragmatic order of judgment is: first check whether the benchmark is saturated and whether it has contamination or judging flaws; then determine whether it measures single-point generation, long-horizon refactoring, or closed-loop execution in a terminal; and finally decide using a private evaluation set from your own codebase. The role of leaderboards is to narrow the candidate pool; the real basis for selection comes from task pass rates, interaction cost, and rollback risk on workloads drawn from the same distribution as your business.
