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

TEP-GNN:基于图神经网络的功能测试执行时间精确预测

TEP-GNN: Accurate Execution Time Prediction of Functional Tests using Graph Neural Networks

Chalmers University of Technology(查尔姆斯理工大学);Fondazione Bruno Kessler(布鲁诺·凯斯勒基金会);University of Trento(特伦托大学);University of Gothenburg(哥德堡大学)

Hazem Peter Samoaa, Antonio Longa, Mazen Mohamad, Morteza Haghir Chehreghani, Philipp Leitner

摘要:

在实际执行或基准测试之前预测生产代码的性能是非常具有挑战性的。在本文中,我们提出了一个预测模型,被称为TEP-GNN,这表明,高精度的性能预测是可能的预测单元测试执行时间的特殊情况。TEP-GNN使用FA-AST或流增强AST作为基于图的代码表示方法,并使用强大的图神经网络(GNN)深度学习模型预测测试执行时间。我们评估TEP-GNN使用四个现实生活中的Java开放源程序,基于922个测试文件挖掘项目的公共存储库。我们发现,我们的方法实现了0.789的高Pearson相关性,大大优于基线深度学习模型。然而,我们也发现,需要更多的工作来训练模型,以推广到看不见的项目。我们的工作表明,FA-AST和GNN是预测绝对性能值的可行方法,并且是在执行之前能够预测任意代码性能的重要中间步骤。

英文摘要:

Predicting the performance of production code prior to actually executing or benchmarking it is known to be highly challenging. In this paper, we propose a predictive model, dubbed TEP-GNN, which demonstrates that high-accuracy performance prediction is possible for the special case of predicting unit test execution times. TEP-GNN uses FA-ASTs, or flow-augmented ASTs, as a graph-based code representation approach, and predicts test execution times using a powerful graph neural network (GNN) deep learning model. We evaluate TEP-GNN using four real-life Java open source programs, based on 922 test files mined from the projects' public repositories. We find that our approach achieves a high Pearson correlation of 0.789, considerable outperforming a baseline deep learning model. However, we also find that more work is needed for trained models to generalize to unseen projects. Our work demonstrates that FA-ASTs and GNNs are a feasible approach for predicting absolute performance values, and serves as an important intermediary step towards being able to predict the performance of arbitrary code prior to execution.

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

↑