fix bugs by mac's G++ and CLANG++ compiler.
performance test case console print.