Smaller-cap equities rocketed higher during the second quarter, as enthusiasm for artificial intelligence-related names overcame risks associated with the war in Iran.