Removes benchmarking code from non-debug builds.