arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.29695cs.SE
收藏

用于系统级性能优化的编码智能体基准测试

Benchmarking Coding Agents for System-Level Performance Optimization

Yanze Zhang, Maggie Yongqi Guan, Shudong Liu, Qi Hao, Kanye Ye Wang, Meng Qu, Xiaobo Zhou

AI总结:

该研究推出MicroPerf-Bench基准测试微服务系统性能优化的编码智能体,发现最佳智能体仅恢复42.0%性能下降,系统级瓶颈定位是核心挑战。

摘要:

编码智能体正成为自动化软件工程任务的重要范式,但现有编码基准主要在函数或仓库层面评估智能体,很大程度上未探索其在更复杂分布式软件系统中的能力。实际中,许多现代应用采用微服务架构,端到端性能源于多个独立运行服务的交互,要求智能体推理超出本地代码变更。为研究该能力,我们推出MicroPerf-Bench,这是用于评估微服务系统中端到端性能优化的编码智能体的基准。构建此类基准颇具挑战,因为可复现的系统级性能修复稀少且难以归因。我们通过将基于经验的性能反模式注入真实开源系统,同时保留功能并确保可测量的性能下降,解决了该挑战。生成的基准包含7个系统、9种反模式下的65个优化实例,每个实例都有可执行环境、功能测试和混合工作负载评估。在覆盖9种智能体模型配置的1755次运行中,最佳配置仅恢复了注入性能下降的42.0%。主要失败并非无效代码,而是功能正确且符合约束的变更未能提升端到端性能,凸显系统级瓶颈定位是当前编码智能体的关键挑战。源代码和数据可在该httpsURL获取。

英文摘要:

Coding agents are becoming an increasingly important paradigm for automating software engineering tasks. However, existing coding benchmarks primarily evaluate agents at the function or repository level, leaving their capabilities in more complex distributed software systems largely unexplored. In practice, many modern applications adopt microservice architectures, where end-to-end performance emerges from interactions among multiple independently running services, requiring agents to reason beyond local code changes. To study this capability, we introduce MicroPerf-Bench, a benchmark for evaluating coding agents on end-to-end performance optimization in microservice systems. Constructing such a benchmark is challenging because reproducible system-level performance fixes are sparse and difficult to attribute. We address this challenge by injecting empirically grounded performance anti-patterns into real-world open-source systems while preserving functionality and ensuring measurable performance degradation. The resulting benchmark contains 65 optimization instances across seven systems and nine anti-patterns, each with an executable environment, functional tests, and mixed-workload evaluation. Across 1,755 runs covering nine agent-model configurations, the best configuration recovers only 42.0% of the injected performance degradation. The dominant failure is not invalid code, but functionally correct and constraint-compliant changes that fail to improve end-to-end performance, highlighting system-level bottleneck localization as a key challenge for current coding agents. The source code and data are available at https://github.com/zyzcjnb/microperf.

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

↑