How to Evaluate LLM Coding Ability: A Close Look at Three Benchmarks
As classic coding benchmarks saturate near 80, scores no longer separate models that merely look strong from those that hold up in real software work. This article explains the design, limits, and evolution of SWE-Bench Verified, SWE-Bench Pro, and Terminal Bench, and outlines a more practical way for engineering teams to judge coding models.
From Score Chasing to Engineering Evidence: Why Coding Evaluation Is Getting Harder
As large language models have advanced quickly in code generation, developer communities long relied on a single score to judge which model was better. Over the past two years, a clear trend has emerged: leading models commonly approach or exceed 80 on classic coding benchmarks. The metrics are saturating, and scores are losing their ability to distinguish models. When nearly everyone scores around 80, the more important question is whether a model is actually good enough for real software engineering—not whether it can climb a leaderboard.
This article does not focus on any specific model. It starts from the evaluation systems themselves, unpacking the design logic, weaknesses, and direction of three mainstream coding benchmarks, so technical teams can build a more rigorous way to assess models.
1. SWE-Bench Verified: The Rise and Retirement of a Classic Benchmark
Design: From Real Issues to Automated Acceptance
The core idea behind the SWE-Bench family is realism. Tasks are built from real issues and pull requests in a large number of open-source repositories. A typical task includes:
- A snapshot of a real code repository
- Issue text describing a bug or feature request
- The code baseline before the fix
- The corresponding acceptance tests
The model must read the issue, locate the relevant code, make the change, and pass the tests. That chain closely mirrors the real workflow of fixing a production defect, and it tests broader engineering ability far better than completing a single function.
A Human-Filtered Version: More Stable, but Already Near the Ceiling
Sample quality in the original SWE-Bench was uneven. Some issues were vague, some tests were unstable, and some tasks had multiple reasonable solutions but only one accepted outcome. The industry therefore introduced a human-filtered set of about 500 samples. Reviewers cleaned the original tasks and removed cases with unclear descriptions, unstable tests, or ambiguous evaluation criteria, making scores more stable and more credible.
This version served as an industry yardstick for a long time. The problem followed quickly: most models now score above 80, so the remaining differences are compressed into a few points at the top. For model selection, that score can no longer answer whether model A is more reliable than model B.
Two Critical Flaws: False Failures and Data Contamination
More fundamental problems concern the benchmark’s validity.
First, incorrect test judgments. Some tests wrongly reject correct solutions. A model may produce an engineering-reasonable fix and still be marked as failed. Scores are systematically understated, and different models are penalized to different degrees.
Second, training-data contamination. These tasks come from public repositories, and the corresponding patches and discussions are public as well. A model may have seen the answer during training, so a high score can reflect memorization rather than a genuine ability to fix bugs.
For these reasons, the benchmark’s creators have explicitly stopped treating it as a core evaluation standard. That decision itself is worth reflecting on: once a benchmark’s tasks may enter training corpora, its useful life is already counting down.
2. SWE-Bench Pro: Higher Difficulty and Stronger Contamination Resistance
As the successor to the classic benchmark, SWE-Bench Pro can be understood as a harder version. It improves the evaluation in two directions at once.
Contamination Resistance Through Licensing
To reduce contamination risk, the benchmark applies strong constraints at the data-license level. Both the public subset and the held-out subset use strong copyleft licenses, such as GPL-style licenses. The “viral” nature of these licenses means any vendor that wants to use the data to train a closed model faces significant legal and engineering costs. The barrier is structural rather than a matter of voluntary restraint.
A Jump in Difficulty: From a Few Lines to Hundreds
The increase in difficulty is more visible:
- Every task requires changing at least 10 lines of code.
- More than 100 tasks require changing more than 100 lines.
Compared with the many classic tasks that could be solved by changing one or two lines, this demands cross-file understanding, coordinated edits in multiple places, and more complete context tracking—closer to the workload of fixing a real medium-sized defect.
Results: A Clear Split Between the Top and the Middle
On the new benchmark, model scores are generally below 60, and only a very small number of leading models have crossed that threshold. This unsaturated distribution is itself evidence that the benchmark works: it reopens the gap between models and makes “nearly usable” distinguishable from “genuinely reliable.” By this measure, the engineering gap between leading models and traditional open-source models is much larger than the classic benchmark suggested.
3. Terminal Bench: Testing an Agent’s Ability to Act
The first two benchmarks test code writing. The Terminal Bench family tests a different dimension: an AI agent’s ability to carry out real tasks in a command-line or terminal environment.
Typical tasks include environment setup, dependency installation, log investigation, writing and running scripts, and failure recovery. The model no longer merely outputs a piece of code. It must:
- Plan a multi-step sequence of actions on its own
- Observe the output of each step and adjust its strategy
- Handle exceptions and uncertainty in a real environment, such as network failures, permission problems, and path conflicts
This is a combined test of tool use, long-horizon planning, and error recovery. It closely matches the growing use of AI assistants to take over operations and development pipelines inside companies. In short, the SWE family measures a model as a programmer, while terminal benchmarks measure it as an on-call engineer.
4. Practical Advice: How Teams Should Think About Evaluation
Do Not Trust a Single Score
Any one benchmark covers only a slice of the capability space. A sound approach is to combine them: use a hard SWE-style benchmark to assess the depth of code changes, a terminal benchmark to assess agent execution, and an internal set drawn from your own business scenarios.
Prefer Benchmarks Designed Against Contamination
When choosing a benchmark, ask first whether its tasks may already be in training data. Samples taken from public repositories and public discussions deserve caution. Evaluation sets with isolation mechanisms produce scores that carry significantly more weight.
Build Your Own Business Benchmark
A general benchmark can never answer whether a model fits your codebase. Collect sanitized bug-fix tasks from real projects, build an internal benchmark, and keep tracking how models perform against your code style and domain frameworks.
Judge the Process, Not Only the Result
Two fixes can both pass the tests while having very different engineering value: one may be a precise minimal change, while the other rewrites a large area and introduces hidden risk. Evaluation should include diff review, added test coverage, and whether the change introduces regressions—not only whether it passed.
Conclusion
Coding benchmarks have moved from saturated classics where nearly everyone scores 80, to a new generation that is harder and more resistant to contamination, and then to terminal benchmarks aimed at agents. That path points to a simple idea: the value of an evaluation is not the score itself, but whether the score can distinguish real gaps in engineering ability. For developers, understanding what each benchmark tests—and what it misses—matters more than remembering the numbers on a leaderboard.
