Microsoft has posted eight straight quarters of revenue growth, while its smaller peer swung between sharp gains and declines.