# SWE-bench

- **Canonical URL:** https://getaimath.com/dictionary/swe-bench/
- **Topics:** [AI Evaluation & Performance Metrics](https://getaimath.com/dictionary/category/ai-evaluation-and-performance-metrics/)
- **Last updated:** 2026-11-25

## What is SWE-bench?

**In one sentence:** SWE-bench is a benchmark that tests whether AI can fix real bugs in real open-source software projects.

Each task comes from a real GitHub issue. The AI must understand the codebase, change the right files and make the tests pass. SWE-bench Verified is a human-checked subset.

![Measuring AI Quality: The Smoke Detector Trade-Off — Simple cartoon comparing Precision and Recall using a kitchen smoke detector: Low Precision screams at burnt toast (False Alarms), Low Recall sleeps through a real fire (Missed Cases), and Good Evals test both on real-world examples.](https://getaimath.com/diagrams/ai-evaluation-and-performance-metrics.png)
*Napkin Diagram (AI Evaluation & Performance Metrics): Precision means "no false alarms when it speaks up"; Recall means "don’t miss the real problem when it happens."*

## What is an example of SWE-bench?

An AI reading a bug report for a Python library and writing a working fix.

## Why does SWE-bench matter?

It measures real-world software engineering skill, not just toy problems.

## Related Concepts

- [HumanEval](https://getaimath.com/dictionary/humaneval/): HumanEval is a coding benchmark of 164 programming problems where models must write Python functions that pass tests.
- [GPQA](https://getaimath.com/dictionary/gpqa/): GPQA is a benchmark of very hard, graduate-level science questions that are difficult to answer even with web search.
- [MMLU](https://getaimath.com/dictionary/mmlu/): MMLU, or Massive Multitask Language Understanding, is a benchmark with about 16,000 multiple-choice questions across 57 subjects.
- [Arena Elo](https://getaimath.com/dictionary/arena-elo/): Arena Elo is a rating system that ranks AI models based on people voting for the better answer in head-to-head comparisons.
- [Pass@K](https://getaimath.com/dictionary/pass-k/): Pass@K measures the chance that at least one of K attempts by a model solves a problem correctly, often used for coding.
- [Win Rate](https://getaimath.com/dictionary/win-rate/): Win rate is the percentage of comparisons a model wins against another model or a baseline.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/swe-bench/)
