Timings of two dftracer-utils build directories differ by 1.5x when one has coverage on
PitfallVerified 30 Sep 2026Holds project: dftracer-utils
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
A scan runs about 1.5x slower in one build directory than in another, with the same commit.
Cause#
DFTRACER_UTILS_COVERAGE differs in the two directories. build/build-tests had it ON. A fresh directory from cmake --preset tests had it OFF.
Fix#
Before you compare timings between build directories, compare DFTRACER_UTILS_COVERAGE in each CMakeCache.txt. Build both with the same setting, with coverage OFF for timing.
Evidence#
Observer note, 2026-09-30: plain scans were "consistently 1.5x" slower in build/build-tests. The manager change and the metadata collector were ruled out first by bisecting.
Also found by searching
- same commit scan 1.5x slower in build/build-tests than in a fresh preset build
- benchmark timings differ a lot between two build directories of the same code
- why is one dftracer-utils build slower than another with identical source
- DFTRACER_UTILS_COVERAGE ON in CMakeCache makes runtime slower, gcov instrumentation
- same commit but scan benchmark is 1.5x slower in build/build-tests than fresh build dir
- benchmark timings differ between two cmake build directories, bisect found nothing
- why are my performance numbers different between two build directories of dftracer-utils?
- DFTRACER_UTILS_COVERAGE ON in CMakeCache.txt slows down gcov instrumented build timings