The outgoing Walmart CEO’s tenure was marked by both sharp sales gains and stock growth.