The stock market was largely flat on Friday, taking a rest after a turbulent week. The Nasdaq Composite (^IXIC -0.28%) was down slightly shortly after noon EDT, but it had bounced back considerably from larger losses earlier in the session.

The American consumer plays a key role in driving the U.S. economy forward. Today, investors in Costco Wholesale (COST -0.24%) reacted positively to the warehouse retail-giant's latest earnings results. Meanwhile, in the restaurant field, Chuy's Holdings (CHUY -0.29%) delivered solid gains in its stock price. Below, we'll look more closely at both stocks to see what's happening and what the future might hold.

Costco stretches toward all-time highs

Shares of Costco Wholesale moved higher by nearly 3% early Friday afternoon. The big-box retailer's fiscal fourth-quarter financial performance sent the stock upward to just shy of record levels.

Two people shopping at a warehouse retailer.

Image source: Getty Images.

Costco's numbers reflected the brand dominance the warehouse retail-chain commands. Revenue climbed 17.5% for the quarter and 17.7% for the full year from previous-year periods, with total sales for fiscal 2021 coming in above $192 billion.

Comparable sales were extremely strong, with gains of 15.5% overall and 9.4% after accounting for the rise in gasoline prices since last year. U.S. stores performed the best in U.S. dollar terms, although Canada and other international locations had solid performance on a local-currency basis.

Costco's bottom line was also strong. For the full year, net income topped $5 billion, up 25% from the $4 billion figure from fiscal 2020.

In general, investors are pleased with the way Costco has handled challenging situations. The reimposition of purchase limits on paper towels and bottled water signals the uncertainty of when the COVID-19 pandemic will truly be under control. However, the retailer hopes to maintain attractive pricing while sustaining its margins in light of higher costs, and that's good news for shareholders.

Hungry for more

Meanwhile, shares of Chuy's Holdings were up nearly 6%. The Austin-based Tex-Mex restaurant chain found itself receiving favorable reviews from stock analysts.

Jefferies (JEF -1.59%) weighed in on Chuy's, upgrading the stock from hold to buy. Analysts there boosted their price target on Chuy's stock by $5 to $41 per share.

The upgrade was part of a larger set of positive comments aimed at several key players in the restaurant industry, with BJ's Restaurants (BJRI -0.12%), Dave & Buster's (PLAY -4.31%), and Cheesecake Factory (CAKE -1.35%) also getting upgrades. Jefferies is convinced that concerns about cost inflation and the potential impact of the delta variant of COVID-19 have led to an overreaction in selling off restaurant stocks. In the long run, analysts believe that Chuy's and its peers should be able to bounce back as strong demand from dining patrons remains pent up to a significant extent.

Chuy's took a huge hit early in the pandemic, but investors have looked forward to a big bounce from the Tex-Mex chain for a long time. From a fundamental perspective, Chuy's business still needs to return to a sustainable growth trajectory. However, forward-looking shareholders are increasingly hopeful that the worst is now behind Chuy's, and it can take advantage of hungry customers to restore its pre-pandemic growth.