arXiv · 2611.36905
From Code Changes to Slowdowns: An Empirical Study of Performance Regressions in Open-Source Database Kernels
Abstract
Database kernels change continuously, and a change that leaves every query result correct can still make a workload far slower. Because results stay correct, result-checking tests cannot reveal such regressions, and although several detectors target database performance problems, little is known about the regressions that code changes introduce. We present, to our knowledge, the first cross-system study of code-change-induced performance regressions in database kernels. Scanning over 2.1 million commits and related reports of nine open-source systems, from embedded SQLite to distributed TiDB, we identify 668 publicly confirmed regression families in kernel code and analyze where they occur, how changes cause them, and how completely they can be traced to code. We find that regressions span the kernel: query optimization is the largest module (27.4%), but execution and storage together account for more (36.8%), and the leading module differs by architecture. Extra work on a hot path, plan changes, and concurrency or coordination changes cause 61.8% of families. Over 95% of families map to changed code, but only 43.7% identify the introducing change, a subset that over-represents plan changes. Replaying 22 regressions on historical builds, we evaluate nine configurations of four detectors, including APOLLO and AMOEBA, and three developer benchmarks. Most timing alerts are slowdowns that the regression's fix does not remove; the detectors reach only seven regressions and the benchmarks none, mainly because their workloads never contain the trigger. These results call for change-directed testing that varies the workload dimensions a change puts at risk.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Xueli Sun, Shuangxiang Kan. 2026-11-27. From Code Changes to Slowdowns: An Empirical Study of Performance Regressions in Open-Source Database Kernels. https://arxiv.science/abs/2611.36905
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.