The S&P 500 earnings growth jumped to 47.4% in the second quarter as technology companies like Amazon lead the charge