The S&P 500 and Nasdaq Composite rose to record highs on Wednesday as tech shares outperformed while investors continued to weigh the coronavirus' impact on the global economy.

The broad index closed 0.5% higher at 3,386.15, breaking above a previous all-time high of 3,385.09, while the Nasdaq climbed nearly 0.9% to 9,817.18. Meanwhile, the Dow Jones Industrial Average was up 115.84 points, or 0.4% to close at 29,348.03.