SWE-Perf
Agents speed up code in 140 tasks drawn from performance pull requests in real GitHub repos. Scored on correctness and runtime gain.
- Made by
- TikTok and Xi'an Jiaotong University
- Released
- July 2025
- Kind
- Speed and optimization
- Level
- Expert
- Scored
- Checked automatically
- Answers
- Code
- Tasks
- All public
- Strongest model tested
- Claude 3.7 Sonnet #118 on the capability index
- Last in a launch post
- December 2025, dropped before it saturated
- Last model added
- December 2025
- Scores refreshed
- November 12th, 2026
In the authors’ words
Code performance optimization is paramount in real-world software engineering and critical for production-level systems. While Large Language Models (LLMs) have demonstrated impressive capabilities in code generation and bug fixing, their proficiency in enhancing code performance at the repository level remains largely unexplored. To address this gap, we introduce SWE-Perf, the first benchmark specifically designed to systematically evaluate LLMs on code performance optimization tasks within authentic repository contexts. SWE-Perf comprises 140 carefully curated instances, each derived from performance-improving pull requests from popular GitHub repositories. Each benchmark instance includes the relevant codebase, target functions, performance-related tests, expert-authored patches, and executable environments. Through a comprehensive evaluation of representative methods that span file-level and repo-level approaches (e.g., Agentless and OpenHands), we reveal a substantial capability gap between existing LLMs and expert-level optimization performance, highlighting critical research opportunities in this emerging field.
MiniMax-M2.1 leads with 3.10%
Best score per model as labs report them in their own cards. Labs pick their own settings, so these compare less cleanly than independent runs.
Claude 3.7 Sonnet leads with 2.26% across all independent runs
Best score per model across the official leaderboard, Epoch AI’s own runs and any board Epoch AI copied. Each bar and row names its source.
MiniMax-M2.1 leads with 3.10%, claims included
Best score per model from every source, including labs’ own numbers and claims Epoch AI collected from reports and papers. Labs pick their own settings, so a claim can beat an independent run of the same model.
- 1
MiniMax-M2.1 3.10%
Source: Labs’ model cards
- 1 Claude 3.7 Sonnet Realistic 2.26%
- 2
Qwen3-235B-A22B Oracle 0.68%
Source: Official SWE-Perf leaderboard
- 1
MiniMax-M2.1 3.10%
- 2 Claude 3.7 Sonnet Realistic 2.26%
- 3
Qwen3-235B-A22B Oracle 0.68%
Sources: Labs’ model cards and official SWE-Perf leaderboard
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | | 3.10% | Dec 2025 | Lab model card |
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | Claude 3.7 Sonnet | 2.26% | Realistic, OpenHands | Feb 2025 | Official leaderboard |
| 2 | | 0.68% | Oracle | Apr 2025 | Official leaderboard |
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | | 3.10% | Dec 2025 | Lab model card | |
| 2 | Claude 3.7 Sonnet | 2.26% | Realistic, OpenHands | Feb 2025 | Official leaderboard |
| 3 | | 0.68% | Oracle | Apr 2025 | Official leaderboard |
The benchmark's own leaderboard has 11 entries, 2 of them models we track. Switch the scores above to rank them together.
Number one over time Number one over time 2 models have held number one with claims included since its release in July 2025
Lab claims count from the day the card came out, independent runs from the model’s release.
Source: Official SWE-Perf leaderboard
Scores over time
All the scores we have, one dot each, so a model tested at several settings appears more than once.
Sources: Official SWE-Perf leaderboard and labs’ model cards
Labs headline it less often now, last in December 2025
Launch posts from every lab that has listed it, one tick per post. Tall colored ticks include it, and short gray ones leave it out.
| Date | Launch post | Score | As the post writes it |
|---|---|---|---|
| Dec 23, 2025 | 3.1 | SWE-Perf |
More in Coding
- SWE-bench Verified In use 500 human-validated GitHub issues from 12 Python repos. Agent writes a patch that must pass hidden tests. Claude Opus 4.7 83.5%
- LiveCodeBench v6 In use Competitive programming problems collected after model cutoffs from LeetCode, AtCoder, Codeforces. Scored pass@1 on hidden tests.
DeepSeek-V4-Pro 93.5%
- SWE-bench Multilingual In use 300 GitHub-issue tasks across nine programming languages in SWE-bench format. Patch graded by repository tests. Claude Fable 5.2 96.6%
- DeepSWE In use 113 original long-horizon engineering tasks across 91 repos and five languages, written from scratch. Hand-written verifiers accept alternative solutions. GPT-6 Astra 74.1%
- SciCode In use Scientist-curated research coding problems split into subproblems across natural sciences. Code checked against test cases.
Seed2.1 Pro 59.8%
- Codeforces rating In use Model solves recent Codeforces contest problems. An Elo-style rating is computed from simulated contest performance.
DeepSeek V4.1 Flash 3,471