The company’s revenue and profit rose at a faster pace than analysts had projected, according to FactSet Research.