arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.06127cs.SEcs.PF
收藏

性能反模式对多目标软件模型重构优化的影响

On the impact of Performance Antipatterns in multi-objective software model refactoring optimization

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

摘要:

软件质量评估是一个具有挑战性和耗时的活动,模型是至关重要的,以面对现代软件应用程序的这种活动的复杂性。一个主要的挑战是,独特的质量属性的改进可能需要对应用程序进行对比的重构操作,如性能和可靠性之间的权衡。在这种情况下,多目标优化可以为设计师提供更广泛的观点,这些权衡,因此,可以导致确定适当的行动,考虑到独立的,甚至竞争的目标。在本文中,我们提出了一种方法,利用NSGA-II多目标进化算法搜索最佳的Pareto解决方案的软件重构边界,同时考虑的目标:i)性能变化,ii)可靠性,iii)性能反模式的数量,和iv)架构距离。该算法将随机生成的重构动作组合成解决方案(即,动作序列),并根据目标进行比较。我们已经在一个训练订票服务案例研究中应用了我们的方法,并且重点分析了性能反模式对解决方案质量的影响。事实上,我们观察到,当反模式进入多目标优化时,该方法可以找到更好的解决方案。特别是,性能反模式目标导致解决方案的性能提高了15%,相对于不考虑反模式的情况下,而不影响解决方案的质量对其他目标。

英文摘要:

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. One main challenge is that the improvement of distinctive quality attributes may require contrasting refactoring actions on an application, as for trade-off between performance and reliability. 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 actions that take into account independent or even competing objectives. In this paper, we present an approach that exploits the NSGA-II multi-objective evolutionary algorithm to search optimal Pareto solution frontiers for software refactoring while considering as objectives: i) performance variation, ii) reliability, iii) amount of performance antipatterns, and iv) architectural distance. The algorithm combines randomly generated refactoring actions into solutions (i.e., sequences of actions) and compares them according to the objectives. We have applied our approach on a train ticket booking service case study, and we have focused the analysis on the impact of performance antipatterns on the quality of solutions. Indeed, we observe that the approach finds better solutions when antipatterns enter the multi-objective optimization. In particular, performance antipatterns objective leads to solutions improving the performance by up to 15% with respect to the case where antipatterns are not considered, without affecting the solution quality on other objectives.

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

↑