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

使用Microbenchmark套件检测应用程序性能变化

Using Microbenchmark Suites to Detect Application Performance Changes

Martin Grambow, Denis Kovalev, Christoph Laaber, Philipp Leitner, David Bermbach

摘要:

软件性能的变化是昂贵的,往往很难发现预发布。与软件测试框架类似,应用程序基准测试或微基准测试都可以集成到质量保证管道中,以便在发布新的应用程序版本之前检测性能变化。不幸的是,广泛的基准测试研究通常需要几个小时,这在详细检查数十个日常代码更改时是有问题的;因此,必须做出权衡。优化的微基准测试套件(仅包括完整套件的一小部分)是解决此问题的潜在方案,因为它们仍然可以可靠地检测大多数应用程序性能更改,例如增加的请求延迟。然而,目前还不清楚微基准测试和应用程序基准测试是否检测到相同的性能问题,并且一个可以替代另一个。在本文中,我们探讨微基准套件是否可以检测到相同的应用程序性能变化的应用程序基准。为此,我们运行广泛的基准测试实验与完整的和优化的microbenchmark套件的两个时间序列数据库系统InuxDB和InuxaDB,并将其结果与相应的应用程序基准测试的结果进行比较。我们分别对70和110次提交这样做。我们的研究结果表明,它是可以检测应用程序的性能变化,使用优化的微基准套件,如果频繁的假阳性警报可以容忍。

英文摘要:

Software performance changes are costly and often hard to detect pre-release. Similar to software testing frameworks, either application benchmarks or microbenchmarks can be integrated into quality assurance pipelines to detect performance changes before releasing a new application version. Unfortunately, extensive benchmarking studies usually take several hours which is problematic when examining dozens of daily code changes in detail; hence, trade-offs have to be made. Optimized microbenchmark suites, which only include a small subset of the full suite, are a potential solution for this problem, given that they still reliably detect the majority of the application performance changes such as an increased request latency. It is, however, unclear whether microbenchmarks and application benchmarks detect the same performance problems and one can be a proxy for the other. In this paper, we explore whether microbenchmark suites can detect the same application performance changes as an application benchmark. For this, we run extensive benchmark experiments with both the complete and the optimized microbenchmark suites of the two time-series database systems InuxDB and VictoriaMetrics and compare their results to the results of corresponding application benchmarks. We do this for 70 and 110 commits, respectively. Our results show that it is possible to detect application performance changes using an optimized microbenchmark suite if frequent false-positive alarms can be tolerated.

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

↑