c++: bring benchmark semantics in line with ref Go version