News for hackers. Stuff that matters.
Re:A Not-Called Function Can Cause a 5X Slowdown by nwellnhof on Tuesday December 04, 2018 @09:10AM (#18599507)
Technically, it doesn't has to. You can put your whole test suite into a single executable, making it run extremely fast for C/C++ projects where process startup is often much slower than running a single test unit. This approach is used in some OSS projects I've worked on but it also has its downsides.
Re:A Not-Called Function Can Cause a 5X Slowdown by fuzzy2 on Wednesday December 05, 2018 @03:37AM (#18606594)
Some tests (e.g. unit tests) can run like this, yes. Other tests, including some benchmarks, are not meaningful when wrapped in a single process. Invocation speed and specifics matter.