The S&P 500 is beating most international benchmarks this year, thanks to a surge in big tech shares.