Guard the Boost-dependent benchmark