Three benchmarks that measure different code skills
Code generation has its own benchmark family. The three most-cited tell you different things.
HumanEval (Chen et al. 2021, OpenAI)
164 hand-written Python programming problems with unit tests. Models generate code; the harness runs the tests; score is fraction passing (pass@1, pass@10). Saturated for top models in 2024 — frontier scores hit 90%+. Useful as a basic capability check, not as a discriminator anymore.
MBPP (Mostly Basic Python Problems, Google 2021)
1,000 simpler Python problems. Lower ceiling than HumanEval; mostly used in conjunction with HumanEval for cross-validation.
SWE-bench (Princeton 2023, with extensions)
The interesting one. SWE-bench gives the model a real GitHub issue from a real OSS repo and asks it to produce a patch that passes the project's existing test suite. This is a multi-file, repo-context, agent-style task. SWE-bench-Verified (a subset blessed by maintainers) is the de-facto modern code-agent benchmark. Top scores in 2026 sit around 60-70% — still far from saturated, much more predictive of "can this model help with real software work."
What none of them test
- Code review — reading code is not in scope.
- Tooling — using shell, debuggers, IDE features.
- Long-running iteration — most are one-shot or small-loop.
- Languages other than Python and TypeScript (most of them).