Debugging the performance of Maven’s test isolation: experience report
Debugging the performance of Maven’s test isolation: experience report
复制标题
调试 Maven 测试隔离的性能:经验报告
DOI:
10.1145/3395363.3397381
复制
发表时间:
2020
期刊:
影响因子:
--
通讯作者:
Gligoric, Milos
中科院分区:
文献类型:
--
作者:
Nie, Pengyu;Celik, Ahmet;Coley, Matthew;Milicevic, Aleksandar;Bell, Jonathan;Gligoric, Milos
Testing is the most common approach used in industry for checking software correctness. Developers frequently practice reliable testing-executing individual tests in isolation from each other-to avoid test failures caused by test-order dependencies and shared state pollution (e.g., when tests mutate static fields). A common way of doing this is by running each test as a separate process. Unfortunately, this is known to introduce substantial overhead. This experience report describes our efforts to better understand the sources of this overhead and to create a system to confirm the minimal overhead possible. We found that different build systems use different mechanisms for communicating between these multiple processes, and that because of this design decision, running tests with some build systems could be faster than with others. Through this inquiry we discovered a significant performance bug in Apache Maven’s test running code, which slowed down test execution by on average 350 milliseconds per-test when compared to a competing build system, Ant. When used for testing real projects, this can result in a significant reduction in testing time. We submitted a patch for this bug which has been integrated into the Apache Maven build system, and describe our ongoing efforts to improve Maven’s test execution tooling.
登录
查看更多内容
影响因子:
4.1
作者:
C. Bezemer;Shane McIntosh;Bram Adams;D. Germán;A. Hassan
通讯作者:
C. Bezemer;Shane McIntosh;Bram Adams;D. Germán;A. Hassan
影响因子:
--
作者:
A. Mokhov;Neil Mitchell;Simon Peyton Jones
通讯作者:
Simon Peyton Jones
DOI:
--
发表时间:
2011
期刊:
ESEC/FSE '11
影响因子:
--
作者:
Kivanç Muslu;B. Soran;Jochen Wuttke
通讯作者:
Jochen Wuttke
DOI:
10.1145/2814270.2814316
发表时间:
2015
期刊:
Proceedings of the 2015 ACM SIGPLAN International Conference on Object-Oriented Programming, Systems, Languages, and Applications
影响因子:
--
作者:
Sebastian Erdweg;Moritz Lichter;Manuel Weiel
通讯作者:
Manuel Weiel
DOI:
--
发表时间:
2002
期刊:
影响因子:
--
作者:
Allan Heydon;R. Levin;T. Mann;Yuan Yu;Lytton Avenue
通讯作者:
Lytton Avenue