update benchmark code for fair bench.