Evaluating Search-Based Software Microbenchmark Prioritization

Christoph Laaber, Tao Yue, Shaukat Ali
11/24/2022
cs.SE

Official code: jenetics/jenetics (912 stars, Java, Apache-2.0, last commit 2026-04-18).

Abstract

Ensuring that software performance does not degrade after a code change is paramount. A solution is to regularly execute software microbenchmarks, a performance testing technique similar to (functional) unit tests, which, however, often becomes infeasible due to extensive runtimes.

Show full abstract

To address that challenge, research has investigated regression testing techniques, such as test case prioritization (TCP), which reorder the execution within a microbenchmark suite to detect larger performance changes sooner. Such techniques are either designed for unit tests and perform sub-par on microbenchmarks or require complex performance models, drastically reducing their potential application. In this paper, we empirically evaluate single- and multi-objective search-based microbenchmark prioritization techniques to understand whether they are more effective and efficient than greedy, coverage-based techniques. For this, we devise three search objectives, i.e., coverage to maximize, coverage overlap to minimize, and historical performance change detection to maximize. We find that search algorithms (SAs) are only competitive with but do not outperform the best greedy, coverage-based baselines. However, a simple greedy technique utilizing solely the performance change history (without coverage information) is equally or more effective than the best coverage-based techniques while being considerably more efficient, with a runtime overhead of less than 1%. These results show that simple, non-coverage-based techniques are a better fit for microbenchmarks than complex coverage-based techniques.

View on arXivView PDF

Code Implementations(1)

jenetics/jeneticsOfficial100%
Apache-2.0

Jenetics - Genetic Algorithm, Genetic Programming, Grammatical Evolution, Evolutionary Algorithm, and Multi-objective Optimization

912166Java, CSSDec 21, 20137 months agoApache-2.0
artificial-intelligenceevolutionary-algorithmsevolutionary-strategygenetic-algorithmgenetic-programming+8 more

Similar Papers

Cite this paper

@article{laaber2022evaluating,
  title  = {Evaluating Search-Based Software Microbenchmark Prioritization},
  author = {Christoph Laaber and Tao Yue and Shaukat Ali},
  year   = {2022},
  eprint = {2211.13525},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.13525}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.13525.svg)](https://codeofpaper.com/paper/2211.13525)

Discussion