arXiv:2609.37985cs.SESep 2026

Manuscript Offprint

arXiv:2609.37985

Merged, Not Measured: An Empirical Study of Performance Issues Fixed by Coding Agents

Zhenyu Qi, Haotang Li, Jinfu Chen, Huashan Chen, Yutong Zhao, Derui Zhu, Tomas Cerny, Bo Liu, Sen He

Abstract

Coding agents open pull requests (PRs) that claim to speed up software, but studies of human performance fixes say little about how maintainers respond to such a fix or whether its claim holds. From the 71,677 agent PRs of AIDev v4, a text filter and codebook coding by language models and by the authors select 1,262 performance issues fixed by six agents in 582 repositories. We code each issue and its tests and re-execute 23 rejected and 30 merged fixes. (1) 57% of closed fixes are merged, 61% of rejections give no stated reason, and only 6 of the 23 re-executed rejected claims held under our three-run pilot on mostly agent-built workloads. (2) Acceptance rises with the agent's track record in the repository (31–37% to 70%) and with the repository's pre-opening merge rate on its other agent PRs (33% to 84%). Merged fixes delete a larger share of the lines they change (0.26 versus 0.15), a difference that holds within agent and within repository, with no such difference detected in the coded content, description, tests or measurements. (3) Repeated computation and redundant data processing cause 44% of the issues, and 46% of fixes are architectural-level. (4) Agents change tests in 37% of fixes and 11% carry a performance test or benchmark; of the 30 merged fixes, 18 met our delivery criterion, 3 fell short of the claim, 9 showed no significant gain or regressed, and 14 change behavior on untested inputs. The outcome tracks the repository's history with the agent rather than the coded content of the fix, and a merge does not show that the fix delivers what it claims.

Keywords: coding agents, performance issues, code review, mining software repositories

1 Introduction

Coding agents such as GitHub Copilot's coding agent, OpenAI Codex, Devin, Cursor, Claude Code and Google Jules now open pull requests (PRs) that fix performance issues in public repositories (Li et al. 2026a; Peng et al. 2026; Opu et al. 2026), and the PR description often claims a speed-up. A performance issue is a runtime inefficiency of the product (time, memory, I/O, queries, start-up) that a change to production code removes (Jin et al. 2012; Zhao et al. 2023). The AIDev dataset records 932,791 agent PRs at its MSR 2026 release (Li et al. 2026a) and 2.7 million at the v4 snapshot we use (Li et al. 2025a), 71,677 of them in repositories over 100 stars. However, a passing test cannot show the benefit of such a fix, so a maintainer who receives one must judge the benefit from a measurement, and a reliable measurement takes repetition and control that a PR thread rarely shows (Georges et al. 2007; Mytkowicz et al. 2009). A wrong decision then merges a regression or discards a real improvement.

Prior work has studied performance fixes and the acceptance of PRs separately. Studies of human-written performance fixes describe them as small patches: a median of 8 changed lines (Jin et al. 2012), and 73% of JavaScript optimizations under 20 lines (Selakovic and Pradel 2016). Nistor et al. (2013) add that such fixes are nevertheless larger and harder to get right than other bug fixes, and Zaman et al. (2012) find that only about a third of performance reports carry a measurement. Zhao et al. (2023) coded 570 of these fixes into eight root causes and found 27% architectural-level, 15% with a test change, and maintainability or readability weighed against a fix in a minority of the issues. Whether a PR is merged, in turn, has long been tied to who submits it. Tsay et al. (2014) showed that a submitter's prior interaction with the project and social ties to its maintainers raise the odds of acceptance more than tests do, and Wyrich et al. (2021) found bot PRs merged about half as often as human ones. For coding agents, the MSR 2026 studies of AIDev coded why agent PRs are rejected, pooling every kind of task (Peralta et al. 2026; Gonzalez and El Mezouar 2026; Abujadallah et al. 2026; Wang and Yang 2026), and Duma et al. (2026) found that most agent PRs receive no human review. Two of these studies looked at performance PRs in particular: Peng et al. (2026) selected them by AIDev's task label, without confirming each fix by hand, and found that agent PRs state a validation less often than human ones, and Opu et al. (2026) selected them with a language-model classifier and found acceptance varying with the type of optimization in pooled comparisons. Benchmarks such as SWE-Perf, GSO and SWE-efficiency measure the speed-ups agents achieve on real repositories under a fixed harness and find them far behind the experts' (He et al. 2025; Shetty et al. 2025; Ma et al. 2025). However, no study of the performance fixes that agents open in real repositories confirms each fix by hand, separates the fix's content from the repository that received it, or re-executes what the fix claims. The studies of human fixes describe fixes that a project requested from an author it knows, the acceptance studies pool what a fix contains with who submitted it, and the benchmarks measure a speed-up in a harness rather than in the repository the agent submitted to. This study asks how maintainers decide on a performance fix that an agent opens, and whether the reported improvement holds when the fix is run.

To answer it, we study the performance issues that agents fix in AIDev v4 as a population of their own. Each performance issue is identified through the agent's PR that fixes it, and the agent's change is the issue's fix, so we count and code performance issues and use "PR" only for the GitHub object. From the 71,677 agent PRs, a text filter and codebook coding, first by language models and then by the authors, select 1,262 performance issues fixed by six agents in 582 repositories (Section 3). For each issue we code the inefficiency, the fix, its scope and its tests, and we re-execute 30 rejected fixes whose PRs report a measurement (23 ran) and 30 merged fixes that change a test, to test whether the claim holds on either side of the decision. A comparison with human PRs in five of the repositories (Section 8.2) locates the acceptance gap between the two. This study aims to answer the following research questions:

RQ1: How often are agents' performance fixes accepted or rejected? We find that 57% of closed fixes are merged and 61% of rejections state no reason, and that only 6 of 23 re-executed claims reproduced in our three-run pilot on mostly agent-built workloads.

RQ2: What factors are associated with the acceptance or rejection of agents' performance fixes? We find that the agent's track record in the repository and the repository's pre-opening merge rate on other agent PRs explain the outcome better than the other fix properties we measured; only the deleted-line share survives within agent and repository.

RQ3: How frequently do agents' performance fixes involve architectural changes? We find that agents fix the same inefficiencies as humans, most often by caching, but that 46% of their fixes are architectural-level, with one or two functions changed per file, against 27% of the human fixes Zhao et al. (2023) coded in 13 projects.

RQ4: What evidence do agents provide to support their performance fixes? We find that agents change tests in 37% of their fixes, that only 11% carry a performance test or benchmark, and that acceptance is no higher with any kind of test. Of 30 re-executed merged fixes, 18 met our delivery criterion, 3 improved below the claim, 9 showed no significant gain or regressed, and 14 change behavior on untested inputs.

This paper makes four contributions.

• Evidence that acceptance tracks the repository’s history with the agent and the shape of the patch, while the coded content and evidence variables do not separate the outcomes.

  • A re-execution of 30 rejected fixes with a claimed improvement, of which 23 ran and 6 held, and of 30 merged fixes, of which 18 met our delivery criterion and 14 change behavior, with the protocol for both.

  • A characterization of the inefficiencies agents fix, the resolutions they apply and the reach of their changes.

  • A dataset of 1,262 agent performance fixes, coded for issue, fix, scope and tests, with the materials to reproduce our analyses.

Section 2 reviews prior work, Section 3 describes the dataset and the design of each research question, Sections 4 to 7 answer RQ1 to RQ4, and Sections 8 to 10 draw implications, discuss threats and conclude.

References (69)