Improve benchmark ping logic.