optimize benchmark

thanks joe