One thing about this chart that is not even mentioned is when you revinvest dividends, the return by the S&P over the last 30 years is even higher. Like a 8.3% inflation-adjusted return over the last 30 years. That is 8.3% annual return even figuring in inflation. Inflation in years like 1978 to 1980 were around 10 to 14%. So in spite of those outrageous inflation totals for some years, the market return, even including inflation, around 8.3%. CDs, on the other bitter hand, returned 1%. And, alas, no dividends to boot. LOL.
https://www.putnam.com/literature/pdf/II514-bee9d3d363e6964080e2056af9538b4a.pdf