US stocks have flipped the script for international investors since war erupted in the Mideast, handily outpacing the rest of the world after trailing their global peers badly last month.