The U.S. stock market posted a stellar performance in 2024, with the benchmark S&P 500 index reaching an all-time high closing value of 6,090.27 on Dec. 6.