Tech stocks powered the S&P 500 index to a monster performance in 2021