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

Python中的自动性能缺陷识别

Towards Automated Performance Bug Identification in Python

Sokratis Tsakiltsidis, Andriy Miranskyy, Elie Mazzawi

摘要:

内容:软件性能是一个关键的非功能性需求,出现在许多领域,如关键任务应用程序,金融和实时的系统。在这项工作中,我们专注于早期检测的性能错误,我们的软件在研究中是一个实时的系统中使用的广告/营销领域。目标:找到一个简单且易于实现的解决方案,预测性能错误。方法:我们使用四种机器学习方法构建了几个模型,通常用于缺陷预测:C4.5决策树,朴素贝叶斯,贝叶斯网络和逻辑回归。结果如下:我们的实证结果表明,C4.5模型,使用行的代码更改,文件的年龄和大小作为解释变量,可以用来预测性能错误(召回=0.73,准确率=0.85,精度=0.96)。我们表明,减少提交时交付的更改数量,可以降低性能错误注入的机会。结论:我们相信我们的方法可以帮助从业者在开发周期的早期消除性能错误。我们的研究结果也感兴趣的理论家,建立一个功能性错误和(非功能性)性能错误之间的联系,并明确表明,用于预测的功能性错误的属性可以用于预测的性能错误。

英文摘要:

Context: Software performance is a critical non-functional requirement, appearing in many fields such as mission critical applications, financial, and real time systems. In this work we focused on early detection of performance bugs; our software under study was a real time system used in the advertisement/marketing domain. Goal: Find a simple and easy to implement solution, predicting performance bugs. Method: We built several models using four machine learning methods, commonly used for defect prediction: C4.5 Decision Trees, Na\"ıve Bayes, Bayesian Networks, and Logistic Regression. Results: Our empirical results show that a C4.5 model, using lines of code changed, file's age and size as explanatory variables, can be used to predict performance bugs (recall=0.73, accuracy=0.85, and precision=0.96). We show that reducing the number of changes delivered on a commit, can decrease the chance of performance bug injection. Conclusions: We believe that our approach can help practitioners to eliminate performance bugs early in the development cycle. Our results are also of interest to theoreticians, establishing a link between functional bugs and (non-functional) performance bugs, and explicitly showing that attributes used for prediction of functional bugs can be used for prediction of performance bugs.

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

↑