计算机科学 > 程序设计语言
[提交于 2024年4月17日]
标题:QuickerCheck: Implementing and Evaluating a Parallel Run-Time for QuickCheck
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:This paper introduces a new parallel run-time for QuickCheck, a Haskell library and EDSL for specifying and randomly testing properties of programs. The new run-time can run multiple tests for a single property in parallel, using the available cores. Moreover, if a counterexample is found, the run-time can also shrink the test case in parallel, implementing a parallel search for a locally minimal counterexample. Our experimental results show a 3--9$\times$ speed-up for testing QuickCheck properties on a variety of heavy-weight benchmark problems. We also evaluate two different shrinking strategies; deterministic shrinking, which guarantees to produce the same minimal test case as standard sequential shrinking, and greedy shrinking, which does not have this guarantee but still produces a locally minimal test case, and is faster in practice.
提交历史
来自:Robert Kent Krook[v1] 2024年4月17日 星期三 11:15:51 UTC