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.
Create a lesson
Metadata
- Categories
- cs.SE, cs.DB
- Comments
- 12 pages, 3 figures. Under review at IEEE Transactions on Dependable and Secure Computing
Related papers
Copilot or Culprit? How AI Is Changing Open-Source Bug Reporting and Maintenance
Shared title terminologycs.SEYinuo Liu, Yunlong Lyu, Zichao Luo et al.
Early Adoption, Use, and Maintenance of the Agent Package Manager in Open-Source Software
Shared title terminologycs.SENapasorn Lapprakobkit, Haruka Tokumasu, Tao Xiao et al.
Generating Property-Based Regression Tests from Source Code Semantics
Shared title terminologycs.SEClemens Bauer, Johann Glock, Martin Pinzger
Below the Stopwatch: Checking the Performance Claims of Coding Agents in the Kernel
Shared title terminologycs.SEYuvraj Sehgal, Sneh Patel, Mahsa Panahandeh et al.
Tailoring EU AI Act Requirements from a System's Documentation: Evaluating TERE4AI on Two Open Source Systems
Shared title terminologycs.SEJosé Siqueira de Cerqueira, Kai-Kristian Kemell, João Rossi et al.
Do Vibe-Coded Projects Contain Tests? An Empirical Study
Shared title terminologycs.SEAndre Hora, João Eduardo Montandon, Fabio Petrillo