The S&P 500’s tech sector has surged 22.5% year to date, making it the top performing sector of the broad-market index. The tech-heavy Nasdaq Composite is also tracking to be the best performer of the three major U.S. stock indexes, with about 20.1% in gains this year.