SWE-fficiency: Can Language Models Optimize Real-World Repositories on Real Workloads?
Not on the map. Why?
Abstract (arXiv)
Optimizing the performance of large-scale software repositories demands expertise in code reasoning and software engineering (SWE) to reduce runtime while preserving program correctness. However, most benchmarks emphasize what to fix rather than how to fix code. We introduce SWE-fficiency, a benchmark for evaluating repository-level performance optimization on real workloads. Our suite contains 498 tasks across nine widely used data-science, machine-learning, and HPC repositories (e.g., numpy, pandas, scipy): given a complete codebase and a slow workload, an agent must investigate code semantics, localize bottlenecks and relevant tests, and produce a patch that matches or exceeds expert speedup while passing the same unit tests. To enable this how-to-fix evaluation, our automated pipeline scrapes GitHub pull requests for performance-improving edits, combining keyword filtering, static analysis, coverage tooling, and execution validation to both confirm expert speedup baselines and identify relevant repository unit tests. Empirical evaluation of state-of-the-art agents reveals significant underperformance. On average, agents achieve less than 0.23x the expert speedup: agents struggle in localizing optimization opportunities, reasoning about execution across functions, and maintaining correctness in proposed edits. We release the benchmark and accompanying data pipeline to facilitate research on automated performance engineering and long-horizon software reasoning.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 17 of its 37 references that are in the map. First posted on arXiv 8 Nov 2025.
Builds on
17 of 37 references.
References · 17
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 300
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
- 2024SWE-bench Multimodal: Do AI Systems Generalize to Visual Software Domains?cited by 196
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agentscited by 129
- 2023Learning Performance-Improving Code Editscited by 103
- 2024Evaluating Language Models for Efficient Code Generationcited by 69
- 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 62
5 more
- 2024Mercury: A Code Efficiency Benchmark for Code Large Language Modelscited by 34
- 2025SWE-Perf: Can Language Models Optimize Code Performance on Real-World Repositories?cited by 33
- 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 25
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agentscited by 24
- 2025AlgoTune: Can Language Models Speed Up General-Purpose Numerical Programs?cited by 24
Built on by
Citing papers per year: 2025: 2; 2026: 13.
15 papers.
Sort:
By area:
- 2026Immersion in the GitHub Universe: Scaling Coding Agents to Masterycited by 20
- 2026BeyondSWE: Can Current Code Agent Survive Beyond Single-Repo Bug Fixing?cited by 20
- 2025Confucius Code Agent: Scalable Agent Scaffolding for Real-World Codebasescited by 11
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026FormulaCode: Evaluating Agentic Optimization on Large Codebasescited by 4
- 2026VibeServe: Can AI Agents Build Bespoke LLM Serving Systems?cited by 2
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimizationcited by 2
- 2026Are Performance-Optimization Benchmarks Reliably Measuring Coding Agents?cited by 1
- 2026SemRep: Generative Code Representation Learning with Code Transformationscited by 0
- 2026Themis: Training Robust Multilingual Code Reward Models for Flexible Multi-Criteria Scoringcited by 0
- 2026Post-training is (Massive) Supervised Learningcited by 0
- 2026PERFOPT-Bench: Evaluating Coding Agents on Software Performance Optimizationcited by 0
- 2026SWE-Journey: Towards More Realistic Evaluation of Coding Assistants through Long-Horizon, Multi-Turn Interaction8 Oct 2026
- 2026Is manual software optimization a thing of the past?29 Sep 2026
- 2026SecProbe: Adaptive Evaluation of Coding Agents on Cybersecurity Vulnerabilities27 Sep 2026
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimization22 Jul 2026
- 2026PERFOPT-Bench: Evaluating Coding Agents on Software Performance Optimization8 Jul 2026
- 2026Are Performance-Optimization Benchmarks Reliably Measuring Coding Agents?1 Jul 2026
- 2026VibeServe: Can AI Agents Build Bespoke LLM Serving Systems?7 May 2026
- 2026Themis: Training Robust Multilingual Code Reward Models for Flexible Multi-Criteria Scoring1 May 2026
- 2026Post-training is (Massive) Supervised Learning20 Apr 2026
- 2026FormulaCode: Evaluating Agentic Optimization on Large Codebases16 Mar 2026
- 2026SemRep: Generative Code Representation Learning with Code Transformations13 Mar 2026
- 2026BeyondSWE: Can Current Code Agent Survive Beyond Single-Repo Bug Fixing?3 Mar 2026
- 2026Immersion in the GitHub Universe: Scaling Coding Agents to Masterycited by 20
- 2026BeyondSWE: Can Current Code Agent Survive Beyond Single-Repo Bug Fixing?cited by 20
- 2025Confucius Code Agent: Scalable Agent Scaffolding for Real-World Codebasescited by 11
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026FormulaCode: Evaluating Agentic Optimization on Large Codebasescited by 4
- 2026VibeServe: Can AI Agents Build Bespoke LLM Serving Systems?cited by 2
- 2026Are Performance-Optimization Benchmarks Reliably Measuring Coding Agents?cited by 1
- 2026PERFOPT-Bench: Evaluating Coding Agents on Software Performance Optimizationcited by 0
- 2026SecProbe: Adaptive Evaluation of Coding Agents on Cybersecurity Vulnerabilitiescited by 0
- 2026SecProbe: Adaptive Evaluation of Coding Agents on Cybersecurity Vulnerabilities27 Sep 2026
- 2026PERFOPT-Bench: Evaluating Coding Agents on Software Performance Optimization8 Jul 2026
- 2026Are Performance-Optimization Benchmarks Reliably Measuring Coding Agents?1 Jul 2026
- 2026VibeServe: Can AI Agents Build Bespoke LLM Serving Systems?7 May 2026
- 2026FormulaCode: Evaluating Agentic Optimization on Large Codebases16 Mar 2026
- 2026BeyondSWE: Can Current Code Agent Survive Beyond Single-Repo Bug Fixing?3 Mar 2026
- 2026Immersion in the GitHub Universe: Scaling Coding Agents to Mastery10 Feb 2026
- 2025Agentic Software Issue Resolution with Large Language Models: A Survey24 Dec 2025
- 2025Confucius Code Agent: Scalable Agent Scaffolding for Real-World Codebases11 Dec 2025
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimizationcited by 2
- 2026SemRep: Generative Code Representation Learning with Code Transformationscited by 0
- 2026Post-training is (Massive) Supervised Learningcited by 0
- 2026Is manual software optimization a thing of the past?cited by 0
- 2026SWE-Journey: Towards More Realistic Evaluation of Coding Assistants through Long-Horizon, Multi-Turn Interactioncited by 0
- 2026SWE-Journey: Towards More Realistic Evaluation of Coding Assistants through Long-Horizon, Multi-Turn Interaction8 Oct 2026
- 2026Is manual software optimization a thing of the past?29 Sep 2026
- 2026PerfAgent: Profiler-Guided Iterative Refinement for Repository-Level Code Optimization22 Jul 2026
- 2026Post-training is (Massive) Supervised Learning20 Apr 2026
- 2026SemRep: Generative Code Representation Learning with Code Transformations13 Mar 2026