arXiv:2611.01255cs.SEOct 2026

Manuscript Offprint

arXiv:2611.01255

AdapBench: Adaptive Early-Stopping and Prioritization for Efficient Microbenchmarking in Cloud-based CI/CD

Sebastian Koch, Jonas Heisterberg, Nils Japke, Trever Schirmer, David Bermbach

Sebastian Koch, Jonas Heisterberg, Nils Japke, Trever Schirmer, and David Bermbach

Scalable Software Systems Research Group, TU Berlin, Berlin, Germany

{sk, jh, nj, ts, db}@3s.tu-berlin.de

Abstract—Cloud-based software systems frequently release new versions, a fact further accelerated through agentic coding. Each new release, however, brings the risk of performance regressions which can irritate end users, increase infrastructure costs, and increase carbon footprints. Therefore, developers strive to catch such regressions in testing stages, usually through so-called continuous benchmarking.

The standard way of doing this is using microbenchmark suites which, however, take notoriously long to execute. Optimizing the execution of microbenchmark suites is, hence, an active field of research.

In this paper, we propose AdapBench, an online scheduling system for reducing the execution duration of microbenchmark suites. AdapBench is the first approach which dynamically makes at-runtime decisions for prioritizing the most informative benchmarks and early-stopping each one once enough evidence has accumulated to accept or reject a performance change hypothesis.

We evaluate our prototype on eight popular Java projects, commonly used by microbenchmark research, and four additional Go projects. At matched 90 % change detections and false-positive rate compared to an optimistic uniform run, AdapBench saves 42 % of the aggregate execution duration on the Java projects, with negligible scheduling overhead (below 0.001 % of the total runtime). On the Go projects, AdapBench finds every performance change with zero false positives while saving 85 % of the full run.

Index Terms—microbenchmarking, performance regression detection, early stopping, anytime-valid inference, e-processes, continuous benchmarking

I. INTRODUCTION

With the growing adoption of AI-assisted development, code changes to cloud services ship more frequently than ever [1]. Each change can introduce performance regressions that functional tests miss. Consequently, performance assurance must become more frequent and more rigorous. Without a performance assurance gate, regressions will go increasingly unnoticed, driving up operational costs. Especially in large-scale cloud services, performance drift compounds quickly.

Figure

Fig. 1. We accumulate evidence for two benchmarks answering whether a performance change is present. Since one benchmark exhibits a bigger performance change (7.9%), the evidence accumulates faster and crosses the decision threshold after 108 of 1490 measurements. For the second benchmark (3.2%), it moves around the 3% decision boundary, so the evidence accumulates slowly and the benchmark cannot be early-stopped.

One method of assuring performance is microbenchmarks, which measure the performance of small code fragments such as individual methods [2]. Due to their small testing surface, microbenchmarks enable better root cause analysis than benchmarks of the whole application. Unlike unit tests that have a binary outcome after a single repetition, microbenchmarks need to be executed many times to yield a statistically meaningful result: a single run of a microbenchmarking suite can take hours to execute [2]. Accordingly, reducing the time to execute such suites is an active area of research [3]. While the current model employed by practitioners is to run all benchmarks uniformly for a fixed duration [4, 5], recent research has used historical information to reduce the execution time of microbenchmarks offline by identifying when a benchmark is statistically stable [6]. However, their approach requires a relatively stable codebase such that historical information serves as meaningful priors. It would be ideal to know, a priori, how many measurements are required per microbenchmark. This

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. Accepted for publication at the 19th IEEE/ACM International Conference on Utility and Cloud Computing (UCC 2026).

is, however, infeasible in practice as execution environments are noisy and unpredictable, especially in the cloud [7, 8].

As a solution, we propose AdapBench, a complementary approach that solely relies on dynamic runtime information, independent of historical data or other input features such as code changes to decide on the order of execution and to early-stop microbenchmark execution when a change is statistically proven. As such, our approach is well-equipped for the dynamic performance characteristics present in noisy cloud VMs where CI pipelines typically run [7, 8].

We optimize microbenchmark suite execution along two axes: online benchmark prioritization and execution depth via early stopping. Some benchmarks are more informative than others. They accumulate evidence about a performance regression faster and can therefore be stopped after fewer samples, as Figure 1 illustrates. Their execution is prioritized to uncover regressions sooner. As a result, we identify performance regressions more quickly and cost-effectively.

The challenge is to adaptively identify those informative benchmarks at runtime. We address this with e-processes [9], with which we construct an anytime-valid confidence sequence that yields a reliable per-benchmark stopping signal without running the benchmark to exhaustion. In summary, we make the following contributions:

  • We frame microbenchmark suite execution as an online optimization problem in which we leverage anytime-valid e-processes to support per-benchmark early stopping and online prioritization.

  • We implement and open-source a system that optimizes suites with pluggable prioritization policies (Section III).

  • We perform extensive experimentation, empirically validating a decision-closest prioritization policy that surfaces performance changes 1.7×−4.3×1.7\times-4.3\times faster than round-robin scheduling on Java and up to 5.9×5.9\times using Go. Our scheduler holds the false-positive rate and saves 42% of the aggregate measurement budget at matched recall against the best uniform configuration for Java (27% to 61% per project); on Go, it saves 85% of the full run at full recall with zero false positives (Section IV).

References (32)