Blog→AI in development
Artificial intelligenceProgramming

Benchmarks for coding assistants: what SWE-bench and friends actually measure

21 Apr 2026 · approx. 17 min read

Every announcement of a new model today comes with an avalanche of percentages: “88.6% on SWE-bench Verified”, “82.7% on Terminal-Bench”. But what do those numbers really mean? Why does the same model score 25 percentage points less on one variant of a benchmark than on another? And why is 99% on HumanEval today more a reason for distrust than enthusiasm? We’ll guide you through the world of benchmarks for LLMs in software development — from one-line functions to fixing real GitHub issues — and above all teach you to read their numbers correctly.

Programmer writing code on a laptop

Photo: Lukas, Pexels

How to read the whole topic

A benchmark is not just a number but a scenario. First ask what work it simulates, then what harness it uses, and only lastly compare the percentages on the leaderboard.

Three generations of benchmarks

Code benchmarks can be ranked by how large a chunk of real developer work they simulate. Historically they evolved from the smallest to the largest — and in exactly that order the models gradually “outgrew” them.

1st generation: a function from a docstring

HumanEval (OpenAI, 2021) defined the genre: 164 hand-written Python tasks where the model receives a function header with a docstring and has to complete the body so that the unit tests pass. The similarly built MBPP (Google, 2021) added ~1,000 simpler tasks. In 2021 the best model (Codex) solved ~29% of HumanEval tasks, GPT-4 in 2023 ~67% — today frontier models exceed 95–99% and the benchmark is saturated: it can’t distinguish a good model from an excellent one. The EvalPlus project moreover showed that when more thorough tests are generated for the tasks (HumanEval+), the scores of most models drop noticeably — part of the “successes” was just superficial agreement with poor tests.

2nd generation: competition tasks resistant to contamination

LiveCodeBench (2024) attacked the biggest weakness of the first generation: training data contamination. It collects tasks continuously from programming competitions (LeetCode, AtCoder, Codeforces) and records the publication date of each — the model is then evaluated only on tasks published after its data cut-off date. So it couldn’t have seen them in training. The LiveCodeBench Pro variant rates models with an Elo rating against task difficulty, like chess players.

3rd generation: real repositories and agentic work

SWE-bench (Princeton, 2023) changed the scale: instead of an isolated function the model receives a real GitHub issue and the whole repository (Django, scikit-learn, sympy…). It has to find the problem, fix it and pass the project’s tests — without an agent loop with tools (see our article on agents) this is impossible. Terminal-Bench (2025) builds on the same idea and measures long tasks in the terminal: configure a server, fix a build, get a pipeline working. This is where the real comparison of models takes place today.

Benchmark Year What it measures Metric Status in 2026
HumanEval / MBPP 2021 completing a function from a docstring (Python) pass@1 saturated, historical reference
LiveCodeBench 2024 competition tasks published after the data cut-off pass@1 / Elo respected contamination control
SWE-bench Verified 2024 fixing real GitHub issues (Python repos) % of resolved issues gold standard, approaching saturation
SWE-bench Pro 2025 harder issues, contamination control, commercial repos % of resolved issues successor to Verified, far from saturation
Aider Polyglot 2024 code editing in 6 languages, correct diff format % of tasks with hidden tests respected community standard
Terminal-Bench 2.0 2025 long tasks in the shell, tool use, recovery % of completed tasks emerging standard for agents

How to read the metrics

  • pass@k — the probability that at least one of k generated solutions passes the tests. Most often pass@1 (first attempt) is reported. Beware: pass@5 always looks better; when comparing, k must be the same.
  • Resolve rate — the share of resolved issues on SWE-bench. “Resolved” means the patch passes the tests written for the real fix (fail-to-pass tests) and doesn’t break the rest of the test suite.
  • Elo — relative strength from pairwise contests. It is used by arenas where developers vote (Copilot Arena, WebDev Arena) and by LiveCodeBench Pro. Advantage: constantly fresh tasks and human judgement; disadvantage: it also measures “likeability”, not just correctness.
  • Cost and number of steps — for agentic benchmarks the cost of a run is increasingly reported as well. A model with a 2-point higher score at triple the price is not automatically the better choice.

The SWE-bench family: prestige and confusion

When someone says “coding benchmark” today, they usually mean SWE-bench — no other number is cited as often in model announcements. But SWE-bench isn’t one benchmark, it’s a family, and mixing up the variants is the most common way a reader gets misled:

  • SWE-bench (original, 2023) — 2,294 issues from 12 popular Python repositories. It turned out, though, that some of the tasks are poorly specified or have unreliable tests.
  • SWE-bench Verified (2024) — OpenAI had all 2,294 tasks go through human annotation and selected 500 clean ones: solvable from the specification, with reliable tests. This is the standard cited today.
  • SWE-bench Pro (2025, Scale AI) — a response to the approaching saturation of Verified: harder, multi-file tasks, some from commercial (not publicly available) repositories, active contamination control.
  • Multimodal, Multilingual, Live — variants with images in the specification (bug screenshots), other languages beyond Python, and continuously added fresh issues.

How much the variant matters is shown by a comparison of the same models on Verified and Pro — the difference is consistently around 25 percentage points:

Comparison of model scores on SWE-bench Verified and SWE-bench Pro
Comparison of model scores on SWE-bench Verified and SWE-bench Pro
The central lesson of the whole topic: a number without the variant and harness stated means nothing.

Who’s at the top (mid-2026)

To give an idea of the current state — a selection of published scores on SWE-bench Verified. Take them as a snapshot from the time this article was written; rankings change every few months:

Model SWE-bench Verified Note
Claude 5 (Mythos/Fable generation) ~95 % self-reported by Anthropic, average of 5 runs
Claude Opus 4.8 88,6 % self-reported, system card
Claude Sonnet 5 85,2 % self-reported
GPT-5.3 Codex 85,0 % self-reported by OpenAI
GPT-5.5 82,5 % system card
Gemini 3.1 Pro 80,6 % self-reported by Google DeepMind
DeepSeek V4 Pro 80,6 % open-weights model
Kimi K2.6 80,2 % open-weights model

Two observations. First, the top has crowded into the 80–95% band — Verified is ceasing to discriminate, exactly as HumanEval once did. Second, open-weights models (DeepSeek, Kimi, Qwen), which you can host yourself, today come close on Verified to the commercial top — the difference shows more on harder benchmarks like Pro.

The evolution of the best published score shows how quickly the benchmark was exhausted:

Evolution of the best score on SWE-bench Verified over time
Evolution of the best score on SWE-bench Verified over time
The life cycle of a benchmark in practice: from publication to saturation in roughly two years. That’s why SWE-bench Pro was created.

What else deserves attention

Aider Polyglot: can the model edit, not just write?

Aider Polyglot (the 225 hardest Exercism tasks in Python, JavaScript, Go, Rust, C++ and Java) measures something missing elsewhere: the ability to return correct, applicable diffs against hidden tests. It is precisely editing existing code — not writing from scratch — that a coding assistant does 90% of the time. The leaderboard moreover lists the percentage of correctly formatted edits and the cost of the run, which makes it one of the most practical public rankings.

Terminal-Bench: an agent in the terminal

Tasks like “compile the project, fix the failing CI, set up the database” require dozens of steps, tool use and recovery from errors. Terminal-Bench 2.0 is today the most cited metric for such long agentic runs — and the scores (top around 70–83%) show that this is exactly where models still have lots of room for improvement.

Arenas: developers judge, not tests

LMArena (WebDev Arena) and Copilot Arena pit models against each other in real use and let developers vote; the result is an Elo. They complement test-based benchmarks with a dimension that is poorly measured automatically: readability, style and usefulness of the output.

Two developers discussing code

The final benchmark is always code review. Photo: Christina Morillo, Pexels

Why not to trust the numbers blindly

  • Contamination — SWE-bench builds on public repositories; the fixes for those issues are on GitHub, and therefore potentially in the training data. That’s why LiveCodeBench (tasks after the cut-off) and SWE-bench Pro (private repos, contamination audit) were created.
  • The harness decides — the same model weights give results differing by easily 10–20 percentage points depending on the agentic wrapper (scaffold, tools, number of attempts). Only numbers from the same harness are comparable.
  • Self-reporting — most scores are published by the model makers themselves. Independent leaderboards (Scale SEAL, vals.ai, Epoch AI) tend to be more sober; the difference from a vendor slide is commonly several points.
  • Goodhart’s law — when a metric becomes a target, it ceases to be a good metric. Labs optimise directly for the famous benchmarks; that’s exactly why scores on new, unfamiliar sets (SWE-bench Pro, fresh LiveCodeBench tasks) fall by tens of points.
  • The benchmark is not your workload — SWE-bench Verified is Python and bug fixes; it says nothing about your C# monolith, about frontend or about the quality of architectural decisions.

How to handle it in practice

Use public benchmarks as a coarse filter: a model that sits near the top of SWE-bench Pro, Aider Polyglot and Terminal-Bench is a safe first choice. But the final verdict belongs to your own eval: take 20–50 real tasks from your codebase (fixed bugs, small features, refactorings), have the candidates solve them and evaluate success rate, cost and time. It’s a few days of work and tells you more than all the leaderboards combined — the same principle of measuring yourself that we recommend for the U-curve and hallucinations.

Want to use AI tools in development to the full?

In the Vibe Coding and AI in Development course we discuss coding assistants, agentic tools and how to measure their benefit on your own project. And for building your own agents there is AI Agent Developer.

Zdeněk Vais

About the author

Zdeněk Vais

Founder · Senior Principal Software Engineer, Oracle

Zdeněk has been programming since high school. Since then he has gone from programmer through team leader to architect, building large financial systems, scientific applications and IoT solutions for aircraft along the way. He currently works as a senior principal software engineer at Oracle, where he builds the cloud for media services.

Meet our team

← Back to the blog