Some of the best performers were companies that sell computer chips, memory and other products fueling the AI boom.