arXiv:2610.13563cs.SEOct 2026

Manuscript Offprint

arXiv:2610.13563

Not All Correct Fixes Run Alike: An Empirical Study of Patch Performance in Repository-Level Issue Resolution

Han Peng, Xing Hu, Feifei Niu, Huan Li, Xin Xia

HAN PENG, The State Key Laboratory of Blockchain and Data Security, Zhejiang University, China and Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security, China

XING HU, The State Key Laboratory of Blockchain and Data Security, Zhejiang University, China

FEIFEI NIU, Graz University of Technology, Austria

HUAN LI, The State Key Laboratory of Blockchain and Data Security, Zhejiang University, China

XIN XIA ⊗^{\otimes}, The State Key Laboratory of Blockchain and Data Security, Zhejiang University, China

Repository-level issue-resolution benchmarks such as SWE-bench evaluate submitted patches primarily based on whether they pass the correctness tests, leaving the runtime performance of different test-passing patches largely unexplored. Evaluating patch performance is essential but challenging since designing performance workloads for each benchmark instance is costly. However, these benchmarks already provide a natural candidate: the built-in FAIL_TO_PASS (F2P) tests, which exercise the behavior affected by the issue fix. We therefore investigate whether the provided F2P tests can be repurposed to evaluate patch performance. Overall, we choose four frontier models, Claude Opus 5, GPT 5.6, DeepSeek V4 Pro, and Qwen 3.8 Max, paired with SWE-agent to resolve the pre-filtered measurable corpus from verified splits of SWE-bench and SWE-bench-Live, yielding 262 cases with at least two different correct solutions, including the developer ground-truth patch. We then measure each solution's runtime performance in instruction count and wall-clock time on the native F2P test, and use Welch ANOVA instead of the RSD proposed in prior work as a more robust statistical discrimination criterion. We find that this methodology exhibits notable discrimination capability in runtime performance and identifies performance differences among patches in almost half of the instances. Our empirical study shows that the runtime performance of generated patches is independent of the issue resolution rate of LLMs, with nearly reversed model rankings. The case study also shows that the performance analysis reveals architectural regression in some patches that the correctness evaluation overlooked. These findings suggest that resolution rate does not adequately characterize LLMs' capability for repository-level issue resolution, motivating future evaluations to consider patch performance alongside it.

CCS Concepts: • Software and its engineering → Automatic programming.

Additional Key Words and Phrases: code performance, issue resolution, large language models

1 Introduction

Repository-level issue-resolution benchmarks such as SWE-bench [23] and SWE-bench-Live [46] have become widely used to evaluate the capability of large language models (LLMs) to resolve real-world software issues. For each instance, a solver receives the problem statement, works in the repository at the base commit, and generates a patch. The benchmark then checks whether the applied patch passes the test suites, especially the FAIL_TO_PASS (F2P) tests, which fail on the unfixed repository and pass after the repair, to determine whether the issue is resolved. This evaluation, however, focuses only on functional correctness. Passing the tests does not indicate how efficiently the patch executes: different correct patches may satisfy the same tests while exhibiting substantially different performance costs. Runtime performance is therefore an important dimension of patch quality that current benchmarks fail to capture.

Authors' Contact Information: Han Peng, The State Key Laboratory of Blockchain and Data Security, Zhejiang University, Hangzhou, China and Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security, Hangzhou, China, awd-hanpeng@zju.edu.cn; Xing Hu, The State Key Laboratory of Blockchain and Data Security, Zhejiang University, Hangzhou, China, xinghu@zju.edu.cn; Feifei Niu, Graz University of Technology, Graz, Austria, feifeiniu96@gmail.com; Huan Li, The State Key Laboratory of Blockchain and Data Security, Zhejiang University, Hangzhou, China, huanlee@zju.edu.cn; Xin Xia, The State Key Laboratory of Blockchain and Data Security, Zhejiang University, Hangzhou, China, xin.xia@acm.org.

Han Peng et al.

Recently, code performance has drawn increasing attention alongside correctness. However, the research community has not examined the runtime behavior of generated patches for repository issues related to functional correctness. One line of related work evaluates the runtime performance of code generated from functional requirements, primarily at the function or single-file level [21, 25, 32]. In contrast, our study concerns issue resolution in real-world repositories. The other related line focuses on repository-level code performance optimization [19, 28, 37]. These studies usually carry performance workloads to measure speedup and aim solely to improve runtime performance rather than repair existing functional issues. Overall, our study differs from both lines of research: we focus on whether LLMs produce genuinely different correct patches for the same repository-level functional issues, particularly in runtime performance.

Runtime performance analysis requires workloads to measure the patched code. The repository-level issue-resolution tasks packaged by benchmarks such as SWE-bench, however, provide only test suites for correctness, with none for performance analysis. Nevertheless, we note that the built-in F2P test exercises the exact behavior the fix changes, so running it repeatedly and recording its execution cost seems to provide a free performance evaluation. We therefore investigate whether this F2P test can evaluate the runtime performance of different correct patches and effectively reveal performance differences among them. We build our research corpus from the verified splits of SWE-bench and SWE-bench-Live, through a pre-filtering process that removes the instances unsuitable for performance measurement and retains 339 cases. After that, we employ four frontier LLMs, namely Claude Opus 5, GPT 5.6, DeepSeek V4 Pro, and Qwen 3.8 Max, each paired with the widely used SWE-agent framework [44] to resolve the retained instances. We then collect the correct patches produced by these models, analyze the diversity and similarity landscape among them and the developer ground-truth patches, and repeatedly run the F2P test on each to record instruction counts and wall-clock times for performance analysis. As the statistical discrimination criterion, we employ the Welch analysis of variance (ANOVA) [43] in place of the Relative Standard Deviation (RSD) proposed by prior work [32], considering that the latter ignores the within-solution variance and is therefore not robust enough, especially when the number of solutions under comparison varies across cases, or when several solutions form closely related subgroups.

Our empirical study yields the following findings. First, in the filtered corpus, 77.29% of instances have multiple different correct patches under static comparison, indicating the widespread solution diversity across LLMs and the ground truth. Second, the F2P tests provide meaningful discrimination signals for runtime performance: in 41.98% and 34.73% of cases, different solutions exhibit statistically significant performance differences in instruction count and wall-clock time, respectively, suggesting that the F2P tests could serve as a proper starting point for performance analysis. Third, the discrimination criteria of Welch ANOVA and RSD show inconsistent detection behavior, and the latter is likely to overlook cases with genuine runtime differences while retaining cases without meaningful distinctions. Fourth, the resolution rate of issues and the runtime performance of the generated patches are essentially uncorrelated for the compared LLMs, with nearly reversed model rankings:

• For the issue resolution rates, Claude (87.32%) ≫\gg Qwen (83.19%) > GPT (82.01%) ≈\approx DeepSeek (81.42%);

• For the speedup against the ground truth, GPT (97.53%) ≈ DeepSeek (97.89%) > Claude (98.42%) ≥ Qwen (101.68%), with the smaller the better;

• For the rate of producing the fastest solution, DeepSeek (26.3%) > GPT (24.7%) ≫\gg Qwen (15.3%) > Claude (15.0%), against 18.7% of the ground truth.

The model with the highest resolution rate produces only the third-most efficient patches, and the developer ground-truth patches show no systematic performance advantage over model-generated

Not All Correct Fixes Run Alike: An Empirical Study of Patch Performance in Repository-Level Issue Resolution

3

patches. Lastly, the case study shows that performance comparisons reveal architectural regressions that correctness evaluation cannot detect: three repair strategies vary performance by more than twice, and the two costly ones silently reintroduce the heavy dependency the developer deliberately removed. Based on these findings, we call for future research to focus not only on issue-resolution rates but also on the performance of generated patches for real-world repository issues.

This paper makes the following contributions:

• An empirical study of runtime performance for LLM-generated patches. We conduct a large-scale empirical study of correct patches generated by LLMs and by developers. We investigate whether LLMs produce essentially different correct patches, particularly in runtime performance, for repository-level functional issue resolution, and we answer this question on two SWE-bench-family benchmarks with four frontier LLMs using the established agent framework.

• A practical approach to measure patch performance. We propose a measurement methodology that repurposes the benchmarks’ built-in F2P tests as performance workloads, revealing statistically meaningful performance differences among correct solutions in nearly half of the studied cases.

• A principled criterion to distinguish performance differences. To our knowledge, we are the first to apply Welch ANOVA to compare the runtime performance of LLM-generated patches for repository issues. It accounts for both between-solution and within-solution variation, effectively revealing genuine runtime differences among correct patches.

• Findings and implications for patch performance evaluation. Our empirical study shows that correct patches vary widely across LLMs and developers. It also shows that not only the resolution rate but also the runtime performance of generated patches reflects LLMs' ability to resolve real-world repository issues, with their model rankings nearly reversed, highlighting the need to account for patch runtime performance.