This has been a tough year for tech stocks. The Nasdaq is on track for its worst slump since 2008 and looks set to underperform the S&P 500 for a second consecutive year.