For the past two years, investors have measured the artificial intelligence race by one metric above all others: spending.