The advance marks a sharp turnaround after years of underperformance versus large-cap peers.