NeurIPS 2026QuestionsPapersAreasAboutMarkdown

SWE-Pro: A Benchmark for Evaluating LLMs on Performance-Oriented Repository-Level Optimization

Ezgi Sarıkayak, Wenchao Gu, Hesham Ghonim, Chunyang Chen

NeurIPS page · Open on the map

Category: LLM Agents, Evals & Benchmarks › Hardware-Accelerated Code and System Benchmarking · Type: benchmark or dataset · Keywords: benchmark, LLM, performance optimization, repository-level, code optimization, measurement noise

Areas: Code & Coding Agents › Code Verification › Code benchmarks; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Code and Hardware Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › LLM Code Optimization

Summary

SWE-Pro is a repository-level benchmark that evaluates LLMs on performance optimization across runtime, memory, and TWMU under realistic conditions, revealing a large gap to expert optimizations.

Explained to a 5-year-old

We made a big test for computers to help fix slow code. The test uses real code that experts already fixed. We ask computers to make the code faster and use less memory, just like the experts did. The computers mostly couldn't do it well. This shows we still need better ways to teach computers how to make code fast.

Explained to a 5-year-old, longer

People write computer programs that run on many devices, like phones and websites. Sometimes these programs are slow or use too much memory, which makes devices work harder. Fixing these problems by hand is hard and takes a lot of time. Recently, computers that can write code, called large language models, have become popular for helping with code. To see how good these models are, we need tests that are like real-world problems. This paper created a new test called SWE-Pro that uses real code from many open-source projects. The test includes many different ways to check speed and memory usage, and it even adds a little noise to mimic real conditions. The test also varies the input data so the model must handle many situations. When the models tried to improve the code, they only made tiny speed gains and hardly reduced memory use. In contrast, the expert-written improvements made the code 15 times faster and used 170 times less memory. The experts succeeded on most of the tasks, showing how far the models still are from expert level. This helps researchers know what to work on to make computer-written code better.

For a technical reader

SWE-Pro is a repository-level benchmark that evaluates LLMs on performance-oriented code optimization. It is built from 102 expert optimizations and includes parameterized tests that measure runtime, peak memory, and Time-Weighted Memory Usage under noisy, varying input conditions. The evaluation shows that current LLMs achieve only marginal speedups and virtually no memory reductions, while expert implementations achieve 15.5× speedup and 171.3× memory reduction. Expert improvements are observed in 91.2% of runtime tasks and 65.7% of memory tasks, highlighting a significant gap. The benchmark provides a realistic platform for assessing and improving LLM-based code optimization capabilities.

Problem

There is a need for benchmarks that assess LLMs on repository-level performance optimization, accounting for trade-offs between execution time and memory, measurement noise, and input variability. Current benchmarks oversimplify the problem, limiting evaluation of real-world optimization capabilities.

Method

The approach constructs a benchmark from 102 expert-written optimizations, pairs each with parameterized tests to measure runtime, peak memory, and TWMU across varying inputs and execution conditions, and employs noise-aware measurement to evaluate LLM-generated optimizations.

Results

The evaluation shows that LLMs achieve only marginal runtime improvements and virtually no memory reductions, whereas expert implementations achieve a 15.5× speedup and a 171.3× peak memory reduction, with expert improvements seen in 91.2% of runtime tasks and 65.7% of memory tasks.

Contributions

The paper introduces a repository-level benchmark that captures realistic performance optimization trade-offs and measurement noise, and provides an empirical evaluation revealing the current limitations of LLMs compared to expert optimizations.

Practical relevance

It provides a realistic evaluation platform for assessing and improving LLMs in practical software performance engineering tasks.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction