Record market gains fueled by spending and speculation on artificial intelligence prompt comparison with the late 1990s ...