About a quarter of the total gains went to eight billionaires, including Elon Musk, Jeff Bezos, Oracle chair Larry Ellison, and Alphabet co-founder Larry Page.