During the dot-com boom, the cyclically adjusted price-earnings ratio of the S&P 500 reached some of the highest levels.