Improved code reuse in the benchmark and output more result information.