The benchmark S&P 500 has become less diversified with the success of the largest technology companies.