Starbucks raised its full-year earnings and revenue forecast Thursday after more customers returned to cafes in the U.S. and China for pricier drinks. Shares of the company jumped 6.5% in extended trading. The coffee chain's stock, which has a market value of $110.2 billion, is up 41% so far this year. "Our two targeted long-term growth markets, the U.S. and China, performed extremely well across a number of measures as a result of our focus on enhancing the customer experience, driving new beverage innovation and accelerating the expansion of our digital customer relationships," CEO Kevin Johnson said in a statement. Here's what the company reported compared with what Wall Street was expecting, based on a survey of analysts by Refinitiv: Earnings per share: 78 cents, adjusted, vs. 72 cents expected

Revenue: $6.82 billion vs. $6.67 billion expected

Global same-store sales growth: 6% vs. 4.0% Starbucks reported fiscal third-quarter net income of $1.37 billion, or $1.12 per share, up from $852.5 million, or 61 cents per share, a year earlier. Excluding items, the coffee giant earned 78 cents per share, topping the 72 cents per share expected by analysts surveyed by Refinitiv. Starbucks raised its full-year forecast for earnings and revenue. It now expects adjusted, or non-GAAP, earnings per share in the range of $2.80 to $2.82, up from a prior range of $2.75 to $2.79 per share. It is also forecasting revenue growth of 7%, on the high end of its prior range of 5% to 7%. Net sales rose 8% to $6.82 billion, topping expectations of $6.67 billion.

More afternoon visits

Sales at U.S. stores open at least a year grew by 7%, driven by 3% traffic growth after several quarters of struggling to improve traffic. Analysts were predicting U.S. same-store sales growth of 4.4%. More customers were visiting cafes during all times of the day, including the afternoon. Starbucks has been trying to drive customers to its stores later in the day with promotions like Happy Hour. Starbucks' U.S. loyalty program added roughly 400,000 members during the quarter, bringing its total to 17.2 million. "We know a lot more about our customers now, and it's really fueling what we have in the pipeline for beverage innovation," COO Roz Brewer told analysts on the conference call. The coffee giant revamped the program in April, adding more options for redemption and trying to incentivize customers to join. The program drives customers to spend more and come back more frequently, Johnson said. On Monday, Starbucks announced an equity stake in restaurant tech company Brightloom, formerly known as Eatsa. The deal means that Starbucks' global franchisees will soon have the chance to offer Starbucks' mobile app to customers.

China same-store sales jump