When benchmarking IBD or reindex behavior we have to build bitcoind only, which currently looks like:
0cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_CLI=OFF -DBUILD_TESTS=OFF -DBUILD_TX=OFF -DBUILD_UTIL=OFF -DENABLE_EXTERNAL_SIGNER=OFF -DENABLE_WALLET=OFF -DINSTALL_MAN=OFF
After this change we can simplify that to
0cmake --preset bitcoind-release
You can validate the change by comparing the outputs of before and after:
0git clean -fxd >/dev/null 2>&1 \
1&& stdbuf -oL cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_CLI=OFF -DBUILD_TESTS=OFF -DBUILD_TX=OFF -DBUILD_UTIL=OFF -DENABLE_EXTERNAL_SIGNER=OFF -DENABLE_WALLET=OFF -DINSTALL_MAN=OFF 2>&1 | grep -E "( OFF| ON)|CMAKE_BUILD_TYPE"
vs
0git clean -fxd >/dev/null 2>&1 \
1&& stdbuf -oL cmake --preset bitcoind-release 2>&1 | grep -E "( OFF| ON)|CMAKE_BUILD_TYPE"
which will only contain a single CMAKE_BUILD_TYPE="Release"
(but CMAKE_BUILD_TYPE ...................... Release
should be present in both)