An In-Depth Study of Runtime Verification Overheads during Software Testing
Kevin Guan, Owolabi Legunsen
Abstract
Runtime verification (RV) monitors program executions against formal specifications (specs). Researchers showed that RV during software testing amplifies the bug-finding ability of tests, and found hundreds of new bugs by using RV to monitor passing tests in opensource projects. But, RV's runtime overhead is widely seen as a hindrance to its broad adoption, especially during continuous integration. Yet, there is no in-depth study of the prevalence, usefulness for bug finding, and components of these overheads during testing, so that researchers can better understand how to speed up RV. We study RV overhead during testing, monitoring developerwritten unit tests in 1,544 open-source projects against 160 specs of correct JDK API usage. We make four main findings. (1) RV overhead is below 12.48 seconds, which others considered acceptable, in 40.9% of projects, but up to 5,002.9x (or, 28.7 hours) in the other projects. (2) 99.87% of monitors that RV generates to dynamically check program traces are wasted; they can only find bugs that the other 0.13% find. (3) Contrary to conventional wisdom, RV overhead in most projects is dominated by instrumentation, not monitoring. (4) 36.74% of monitoring time is spent in test code or libraries. As evidence that our study provides a new basis that future work can exploit, we perform two more experiments. First, we show that offline instrumentation (when possible) greatly reduces RV runtime overhead for single versions of many projects. Second, we show that simply amortizing high instrumentation costs across multiple program versions can outperform, by up to 4.53x, a recent evolution-aware RV technique that uses complex program analysis.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Fine-Grained Analyses for Evolution-Aware Runtime Verification cites Instrumentation-Driven Evolution-Aware Runtime Verification
- Fine-Grained Analyses for Evolution-Aware Runtime Verification cites Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software Tests
- Fine-Grained Analyses for Evolution-Aware Runtime Verification cites Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring
- Fine-Grained Analyses for Evolution-Aware Runtime Verification cites More Precise Regression Test Selection via Reasoning about Semantics-Modifying Changes
- Instrumentation-Driven Evolution-Aware Runtime Verification cites More Precise Regression Test Selection via Reasoning about Semantics-Modifying Changes
- Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software Tests cites Instrumentation-Driven Evolution-Aware Runtime Verification
- Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software Tests cites More Precise Regression Test Selection via Reasoning about Semantics-Modifying Changes
- Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring cites Instrumentation-Driven Evolution-Aware Runtime Verification
- Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring cites Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software Tests
- Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring cites More Precise Regression Test Selection via Reasoning about Semantics-Modifying Changes
- A Closer Look at the Use of Reinforcement Learning for Speeding Up Runtime Verification of Software Tests (Experience Paper) cites Fine-Grained Analyses for Evolution-Aware Runtime Verification
- A Closer Look at the Use of Reinforcement Learning for Speeding Up Runtime Verification of Software Tests (Experience Paper) cites Instrumentation-Driven Evolution-Aware Runtime Verification
- A Closer Look at the Use of Reinforcement Learning for Speeding Up Runtime Verification of Software Tests (Experience Paper) cites Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software Tests
- A Closer Look at the Use of Reinforcement Learning for Speeding Up Runtime Verification of Software Tests (Experience Paper) cites Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring
Cited by top-tier papers5
- Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software TestsKevin Guan, Marcelo d'Amorim, Owolabi LegunsenOOPSLA 2025 · 7 citations
- Instrumentation-Driven Evolution-Aware Runtime VerificationKevin Guan, Owolabi LegunsenICSE 2025 · 4 citations
- Faster Runtime Verification during Testing via Feedback-Guided Selective MonitoringShinhae Kim, Saikat Dutta, Owolabi LegunsenASE 2025 · 3 citations
- Fine-Grained Analyses for Evolution-Aware Runtime VerificationPengyue Jiang, Kevin Guan, Mahdi Khosravi, Moustafa Ismail et al.ICSE 2026 · 1 citation
- A Closer Look at the Use of Reinforcement Learning for Speeding Up Runtime Verification of Software Tests (Experience Paper)Shinhae Kim, Saikat Dutta, Owolabi LegunsenISSTA 2026
Builds on3
- Learning Deep Semantics for Test CompletionPengyu Nie, Rahul Banerjee, Junyi Jessy Li, Raymond J. Mooney et al.ICSE 2023 · 45 citations
- Aragog: Scalable Runtime Verification of Shardable Networked SystemsNofel Yaseen, Behnaz Arzani, Ryan Beckett, Selim Ciraci et al.OSDI 2020 · 19 citations
- More Precise Regression Test Selection via Reasoning about Semantics-Modifying ChangesYu Liu, Jiyang Zhang, Pengyu Nie, Milos Gligoric et al.ISSTA 2023 · 19 citations
Related papers
- Reducing Test Runtime by Transforming Test FixturesChengpeng Li, Abdelrahman Baz, August ShiASE 2024 · 1 citation
- Efficient Incremental Code Coverage Analysis for Regression Test SuitesJiale Amber Wang, Kaiyuan Wang, Pengyu NieASE 2024 · 1 citation
- A Comprehensive Study on Quality Assurance Tools for JavaHan Liu, Sen Chen, Ruitao Feng, Chengwei Liu et al.ISSTA 2023 · 12 citations
- CP-Detector: Using Configuration-related Performance Properties to Expose Performance BugsHaochen He, Zhouyang Jia, Shanshan Li, Erci Xu et al.ASE 2020 · 14 citations
- Vectorizing Program Ingredients for Better JVM TestingTianchang Gao, Junjie Chen, Yingquan Zhao, Yuqun Zhang et al.ISSTA 2023 · 16 citations
