Stocks are heading into December with the benchmark S&P 500 near record highs following an over 25% year-to-date gain.