How Do Coding Agents Optimize Software and Report Performance Validation? A Large-Scale Empirical Study of Open-Source Pull Requests
Abstract
Software performance optimization requires identifying bottlenecks and improvement opportunities, and empirically evaluating the effects and trade-offs across performance objectives. Autonomous AI coding agents submit performance-oriented pull requests (PRs) to open-source projects, yet it remains unclear whether these changes reflect established optimization practices and adequately substantiate their claimed value. Extending our MSR 2026 Mining Challenge pilot study of 407 performance PRs, we analyze a sample of 1,130 agentic and 1,130 human-authored performance PRs collected through June 2026. We compare adoption outcomes and patch characteristics between the two groups, and examine their optimization practices and validation behaviors. The results show that agentic PRs are merged less often than human-authored PRs (54.4% vs. 73.3%), but the two groups use similar optimization strategies and report validation at comparable rates. Agentic PRs rely more on static reasoning and less on benchmarks (46.1% vs. 57.2%), although benchmark use converges by the end of the study period. Agentic PRs also report validation for code-smell refactorings as often as for resource-targeting changes, whereas human-authored PRs do so less often. Across both groups, about half of validated PRs report no quantitative performance metric, and relevant trade-offs are rarely quantified. Agentic optimization practice has become increasingly similar to human practice, but the supporting evidence remains incomplete. Establishing whether agent-proposed optimizations are supported by rigorous, quantitative, and multidimensional evidence remains an important challenge. These findings motivate evaluation infrastructure and review criteria that measure intended effects and relevant costs rather than treating the presence of validation alone as sufficient.
Create a lesson
Metadata
- Categories
- cs.SE, cs.PF
- Comments
- 46 pages, 11 figures. Extends our MSR 2026 Mining Challenge paper. Huiyun Peng and Ricardo Calvo contributed equally. Replication package: https://github.com/PurdueDualityLab/EMSE-perf-pr-study
Related papers
From Code Changes to Slowdowns: An Empirical Study of Performance Regressions in Open-Source Database Kernels
Shared title terminologycs.SEXueli Sun, Shuangxiang Kan
Early Adoption, Use, and Maintenance of the Agent Package Manager in Open-Source Software
Shared title terminologycs.SENapasorn Lapprakobkit, Haruka Tokumasu, Tao Xiao et al.
Large-scale Repository Engineering via Agent-Native Reusable Code Primitives
Shared title terminologycs.SEHaibo Jin, Peng Kuang, Xucheng Yu et al.
ReleaseSynth: Scaling Data from Software Evolution for Long-Horizon Coding Agents
Shared title terminologycs.SEMan Ho Lam, Chaozheng Wang, Zongjie Li et al.
LegoReview: Scaling Code Review Data with Verification from Pull Request Histories
Shared title terminologycs.SERuoyu Wang, Jierun Chen, Yuxin Jiang et al.
Co-Modifying Application Code and Deployment Infrastructure: A Causal Study of AI Agent Pull Requests
Shared title terminologycs.SEMohammad Wathiq Soualhi, Basem Suleiman