Rewrite the benchmark test to avoid exit code problems with boost