The company delivered upbeat results in a sector caught in a downdraft and during a broad decline in tech shares