[Paper Review] Quantifying Performance Changes with Effect Size Confidence Intervals
This paper proposes a statistical model using random effects and Fieller's theorem to quantify uncertainty in performance ratio estimates (e.g., speedup) by accounting for non-deterministic sources like runtime variability and non-deterministic compilation. It enables confidence intervals like '5.5% ± 2.5% with 95% confidence', offering a more rigorous, interpretable alternative to current practices that ignore uncertainty and non-determinism in systems performance evaluation.
Measuring performance & quantifying a performance change are core evaluation techniques in programming language and systems research. Of 122 recent scientific papers, as many as 65 included experimental evaluation that quantified a performance change using a ratio of execution times. Few of these papers evaluated their results with the level of rigour that has come to be expected in other experimental sciences. The uncertainty of measured results was largely ignored. Scarcely any of the papers mentioned uncertainty in the ratio of the mean execution times, and most did not even mention uncertainty in the two means themselves. Most of the papers failed to address the non-deterministic execution of computer programs (caused by factors such as memory placement, for example), and none addressed non-deterministic compilation. It turns out that the statistical methods presented in the computer systems performance evaluation literature for the design and summary of experiments do not readily allow this either. This poses a hazard to the repeatability, reproducibility and even validity of quantitative results. Inspired by statistical methods used in other fields of science, and building on results in statistics that did not make it to introductory textbooks, we present a statistical model that allows us both to quantify uncertainty in the ratio of (execution time) means and to design experiments with a rigorous treatment of those multiple sources of non-determinism that might impact measured performance. Better still, under our framework summaries can be as simple as "system A is faster than system B by 5.5% $\pm$ 2.5%, with 95% confidence", a more natural statement than those derived from typical current practice, which are often misinterpreted. November 2013
Motivation & Objective
- Address the widespread lack of uncertainty reporting in performance evaluations within programming language and systems research.
- Tackle non-deterministic sources of performance variation, including runtime fluctuations and non-deterministic compilation.
- Develop a statistical model that enables accurate confidence intervals for performance ratios (e.g., speedup) under realistic experimental conditions.
- Provide a more interpretable and scientifically rigorous alternative to current practices that rely on significance testing or visual overlap of confidence intervals.
- Improve experimental design and reporting to enhance reproducibility and validity in computer systems performance evaluation.
Proposed method
- Formalize performance measurement as a hierarchical random effects model that captures multiple sources of non-determinism: within-execution variability, between-execution variation, and non-deterministic compilation.
- Apply Fieller's theorem to compute confidence intervals for the ratio of two means (e.g., system A vs. B execution times) under this random effects model.
- Use empirical Bayes estimation to jointly estimate variance components from repeated measurements across different levels of variation (e.g., multiple compilations, multiple runs).
- Design experimental protocols that optimize repetition counts at different levels (e.g., compilation, execution) to balance precision and cost.
- Validate the method through statistical simulation on real benchmarks (e.g., FFT, Ping), comparing it to existing practices and assessing coverage and type I error rates.
- Integrate the framework into practical reporting, enabling concise, interpretable statements such as 'system A is faster than B by 5.5% ± 2.5% with 95% confidence'.
Experimental results
Research questions
- RQ1How can uncertainty in performance ratio estimates be rigorously quantified when multiple sources of non-determinism (e.g., runtime variation, non-deterministic compilation) are present?
- RQ2Can a statistical model that accounts for random effects at multiple experimental levels improve the accuracy and reliability of performance evaluation compared to current practices?
- RQ3What is the impact of non-deterministic compilation on performance measurement, and how can it be systematically modeled and mitigated?
- RQ4How do different repetition strategies (e.g., multiple runs, multiple compilations) affect the precision and efficiency of performance evaluation?
- RQ5To what extent does the proposed method improve upon existing approaches that rely on significance testing or visual overlap of confidence intervals?
Key findings
- The proposed method produces confidence intervals for performance ratios that are more accurate and interpretable than current practices, which often omit uncertainty estimates entirely.
- Non-deterministic compilation significantly impacts performance measurements — for example, repeated compilation of the same source code in Mono produced different execution times, necessitating explicit modeling.
- The method allows for optimized experimental design: for some benchmarks (e.g., Ping), repeated executions are unnecessary; for others (e.g., FFT), repeated compilation is essential to capture variability.
- The framework enables concise, natural reporting such as 'system A is faster than system B by 5.5% ± 2.5% with 95% confidence', which is more intuitive and less prone to misinterpretation than significance-based statements.
- The method outperforms existing approaches that rely on visual overlap of confidence intervals, which are binary and less informative than interval estimates of the actual performance ratio.
- Statistical simulation shows that the method maintains appropriate coverage and type I error rates, validating its reliability under realistic conditions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.