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

基于软件模型重构的非功能属性多目标优化

Many-Objective Optimization of Non-Functional Attributes based on Refactoring of Software Models

Vittorio Cortellessa, Daniele Di Pompeo, Vincenzo Stoico, Michele Tucci

AI总结:

该研究提出一种基于NSGA-II遗传算法的软件模型多目标重构优化方法,兼顾性能、可靠性等多目标,在两个案例中实现性能最高提升42%、可靠性最高提升32%,验证了性能反模式和架构距离指标的有效性。

摘要:

软件质量评估是一项具有挑战性且耗时的活动,而模型对于应对现代软件应用中此类活动的复杂性至关重要。在此背景下,在需求和功能快速演进的开发生命周期中,软件重构是一项关键活动。一个主要挑战在于,不同质量属性的改进可能需要对软件采取相互矛盾的重构动作,例如性能与可靠性(或其他非功能属性)之间的权衡就是如此。在这类情况下,多目标优化可以为设计人员提供关于这些权衡的更广阔视角,进而帮助识别出考虑了独立甚至相互竞争目标的合适重构动作。本文提出了一种方法,该方法利用NSGA-II(非支配排序遗传算法II)作为遗传算法,在考虑多个目标的同时搜索软件重构的最优帕累托前沿。我们考虑的目标包括:某个备选模型相对于初始模型的性能和可靠性变化、在备选模型上检测到的性能反模式数量,以及架构距离——该指标用于量化从初始模型得到备选模型所需的工作量。我们在两个案例研究中应用了我们的方法:火车票预订服务(Train Ticket Booking Service)和CoCoME(组件交易管理系统)。我们观察到,我们的方法能够提升性能(最高达42%),同时保持甚至提升生成的备选模型的可靠性(最高达32%)。我们还观察到,在不同的备选模型之间,重构动作存在偏好顺序。我们可以得出结论:在多目标优化的背景下,性能反模式证实了其提升目标模型性能的能力。此外,我们采用的架构距离指标似乎适合用于估算重构工作量。

英文摘要:

Software quality estimation is a challenging and time-consuming activity, and models are crucial to face the complexity of such activity on modern software applications. In this context, software refactoring is a crucial activity within development life-cycles where requirements and functionalities rapidly evolve. One main challenge is that the improvement of distinctive quality attributes may require contrasting refactoring actions on software, as for trade-off between performance and reliability (or other non-functional attributes). In such cases, multi-objective optimization can provide the designer with a wider view on these trade-offs and, consequently, can lead to identify suitable refactoring actions that take into account independent or even competing objectives. In this paper, we present an approach that exploits NSGA-II as the genetic algorithm to search optimal Pareto frontiers for software refactoring while considering many objectives. We consider performance and reliability variations of a model alternative with respect to an initial model, the amount of performance antipatterns detected on the model alternative, and the architectural distance, which quantifies the effort to obtain a model alternative from the initial one. We applied our approach on two case studies: a Train Ticket Booking Service, and CoCoME. We observed that our approach is able to improve performance (by up to 42\%) while preserving or even improving the reliability (by up to 32\%) of generated model alternatives. We also observed that there exists an order of preference of refactoring actions among model alternatives. We can state that performance antipatterns confirmed their ability to improve performance of a subject model in the context of many-objective optimization. In addition, the metric that we adopted for the architectural distance seems to be suitable for estimating the refactoring effort.

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

↑