GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agents
Manish Shetty, Naman Jain, Jinjian Liu, Vijay Kethanaboyina, Koushik Sen, Ion Stoica
TL;DR
GSO introduces a benchmark and automated pipeline to evaluate SWE-Agents on challenging high-performance software optimization tasks derived from real commits. It defines a machine-agnostic, human-targeted evaluation metric (Opt_p@K) and assesses multiple state-of-the-art models, revealing a substantial gap between current SWE-Agents and expert performance. The study combines quantitative results with a qualitative analysis of agent behavior to identify failure modes such as struggles with low-level code, reliance on lazy optimizations, and mislocalization of bottlenecks, while offering guidance for future improvements. Overall, GSO provides a rigorous, real-world testing ground for advancing reasoning and systems engineering capabilities in SWE-Agents.
Abstract
Developing high-performance software is a complex task that requires specialized expertise. We introduce GSO, a benchmark for evaluating language models' capabilities in developing high-performance software. We develop an automated pipeline that generates and executes performance tests to analyze repository commit histories to identify 102 challenging optimization tasks across 10 codebases, spanning diverse domains and programming languages. An agent is provided with a codebase and performance test as a precise specification, and tasked to improve the runtime efficiency, which is measured against the expert developer optimization. Our quantitative evaluation reveals that leading SWE-Agents struggle significantly, achieving less than 5% success rate, with limited improvements even with inference-time scaling. Our qualitative analysis identifies key failure modes, including difficulties with low-level languages, practicing lazy optimization strategies, and challenges in accurately localizing bottlenecks. We release the code and artifacts of our benchmark along with agent trajectories to enable future research.
