An In-Depth Study of Runtime Verification Overheads during Software Testing
Kevin Guan, Owolabi Legunsen
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Fine-Grained Analyses for Evolution-Aware Runtime Verification 引用了 Instrumentation-Driven Evolution-Aware Runtime Verification
- Fine-Grained Analyses for Evolution-Aware Runtime Verification 引用了 Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software Tests
- Fine-Grained Analyses for Evolution-Aware Runtime Verification 引用了 Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring
- Fine-Grained Analyses for Evolution-Aware Runtime Verification 引用了 More Precise Regression Test Selection via Reasoning about Semantics-Modifying Changes
- Instrumentation-Driven Evolution-Aware Runtime Verification 引用了 More Precise Regression Test Selection via Reasoning about Semantics-Modifying Changes
- Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software Tests 引用了 Instrumentation-Driven Evolution-Aware Runtime Verification
- Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software Tests 引用了 More Precise Regression Test Selection via Reasoning about Semantics-Modifying Changes
- Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring 引用了 Instrumentation-Driven Evolution-Aware Runtime Verification
- Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring 引用了 Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software Tests
- Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring 引用了 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) 引用了 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) 引用了 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) 引用了 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) 引用了 Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring
引用它的顶会 Paper5
- Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software TestsKevin Guan, Marcelo d'Amorim, Owolabi LegunsenOOPSLA 2025 · 7 次引用
- Instrumentation-Driven Evolution-Aware Runtime VerificationKevin Guan, Owolabi LegunsenICSE 2025 · 4 次引用
- Faster Runtime Verification during Testing via Feedback-Guided Selective MonitoringShinhae Kim, Saikat Dutta, Owolabi LegunsenASE 2025 · 3 次引用
- Fine-Grained Analyses for Evolution-Aware Runtime VerificationPengyue Jiang, Kevin Guan, Mahdi Khosravi, Moustafa Ismail 等ICSE 2026 · 1 次引用
- 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
它引用的 Paper3
- Learning Deep Semantics for Test CompletionPengyu Nie, Rahul Banerjee, Junyi Jessy Li, Raymond J. Mooney 等ICSE 2023 · 45 次引用
- Aragog: Scalable Runtime Verification of Shardable Networked SystemsNofel Yaseen, Behnaz Arzani, Ryan Beckett, Selim Ciraci 等OSDI 2020 · 19 次引用
- More Precise Regression Test Selection via Reasoning about Semantics-Modifying ChangesYu Liu, Jiyang Zhang, Pengyu Nie, Milos Gligoric 等ISSTA 2023 · 19 次引用
相关 Paper
- Reducing Test Runtime by Transforming Test FixturesChengpeng Li, Abdelrahman Baz, August ShiASE 2024 · 1 次引用
- Efficient Incremental Code Coverage Analysis for Regression Test SuitesJiale Amber Wang, Kaiyuan Wang, Pengyu NieASE 2024 · 1 次引用
- A Comprehensive Study on Quality Assurance Tools for JavaHan Liu, Sen Chen, Ruitao Feng, Chengwei Liu 等ISSTA 2023 · 12 次引用
- CP-Detector: Using Configuration-related Performance Properties to Expose Performance BugsHaochen He, Zhouyang Jia, Shanshan Li, Erci Xu 等ASE 2020 · 14 次引用
- Vectorizing Program Ingredients for Better JVM TestingTianchang Gao, Junjie Chen, Yingquan Zhao, Yuqun Zhang 等ISSTA 2023 · 16 次引用
