arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.31767cs.SE
收藏

JETO-Bench: Java执行时间改进补丁的可复现基准测试

JETO-Bench: A Reproducible Benchmark for Execution Time Improvement Patches in Java

ETH Zurich(苏黎世联邦理工学院)

Khashayar Etemadi, Zhendong Su

AI总结:

提出JETO-Mine工具,通过静态分析、动态分析和评估框架自动构建可复现的Java执行时间改进补丁基准,并构建包含660个补丁的JETO-Bench,验证了其有效性。

摘要:

性能问题的自动修复正受到越来越多的关注。然而,现有的执行时间改进补丁基准测试是固定的数据集,针对Python、C++或.NET,无法根据用户定义的配置扩展到新的补丁。在本文中,我们提出了JETO-Mine,这是第一个可配置且可重用的工具,用于自动创建真实世界Java项目中执行时间改进补丁(ETIP)的可复现基准测试。JETO-Mine采用三阶段流水线:静态分析阶段,爬取GitHub仓库并使用用户定义的过滤器和基于LLM的问题分类器识别ETIP;动态分析阶段,将识别的ETIP封装在Docker镜像中以实现完全可复现的执行,并进行统计测试以找到执行时间改进的客观证据;以及评估框架,能够对生成的补丁和生成的测试进行定量评估。与现有基准测试不同,JETO-Mine被设计为可重用工具,允许研究人员使用自己期望的过滤器和统计严格级别持续收集新的基准测试。我们使用JETO-Mine构建了JETO-Bench,这是一个包含660个识别出的ETIP和91个手动验证的可执行ETIP的基准测试,这些ETIP来自174个开源Java仓库。为了构建JETO-Bench,JETO-Mine扫描了11年的开源开发历史和近180万次提交。我们在JETO-Bench中的91个手动验证的可执行ETIP上运行了领先的开源编码代理OpenHands,发现它正确修复了14.3%(13/91)的问题,与其他编程语言类似研究报告的结果一致。我们的结果还表明,开源Java项目在很大程度上缺乏展示执行时间改进的测试,这为未来测试生成的研究提供了机会。

英文摘要:

Automated fixing of performance issues is gaining attention, but existing benchmarks of execution time improvement patches (ETIPs) target Python, C++, or .NET and are fixed datasets that cannot be extended under user-defined configurations. We present JETO-Mine, the first configurable and reusable tool for automatically creating reproducible benchmarks of ETIPs in real-world Java projects. Java is challenging because just-in-time compilation and garbage collection make execution measurements volatile. JETO-Mine employs a three-phase pipeline: static analysis identifies ETIPs from GitHub repositories using user-defined filters and an LLM-based issue classifier, dynamic analysis wraps identified ETIPs in Docker images and performs statistical testing for evidence of execution time improvement, and an evaluation harness supports quantitative assessment of both patch and test generation tools. Using JETO-Mine, we build JETO-Bench, a benchmark of 660 identified and 91 manually verified executable ETIPs from 174 Java repositories, mined from nearly 1.8 million commits across 11 years. Running OpenHands with GPT-5-mini fixes 14.3% (13/91) of issues, aligning with prior work on other languages. Our results also reveal that open-source Java projects largely lack tests demonstrating execution time improvements, presenting an opportunity for future research in test generation. JETO-Mine and JETO-Bench are publicly available at https://github.com/khesoem/JETO-Bench.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑