Microsoft has been one of the top-performing stocks in the tech industry, with a compound annual growth rate of 29.4% over the past five years.