United Natural Foods (NYSE:UNFI – Get Free Report) and Walmart (NASDAQ:WMT – Get Free Report) are both consumer staples companies, but which is the better business? Get United Natural Foods alerts:Insider & Institutional Ownership87.6% of United Natural Foods shares are owned by institutional investors. ProfitabilityThis table compares United Natural Foods and Walmart’s net margins, return on equity and return on assets. Net Margins Return on Equity Return on Assets United Natural Foods -0.12% 7.42% 1.57% Walmart 3.13% 21.25% 7.60%Earnings and ValuationThis table compares United Natural Foods and Walmart”s gross revenue, earnings per share (EPS) and valuation. Gross Revenue Price/Sales Ratio Net Income Earnings Per Share Price/Earnings Ratio United Natural Foods $31.78 billion 0.09 -$118.00 million ($0.66) -71.24 Walmart $713.16 billion 1.25 $21.89 billion $2.85 39.25Walmart has higher revenue and earnings than United Natural Foods.