Between 2012 and 2021 foreign firms increased their collective Chinese research personnel by a fifth, to 716,000. Their annual R&D spending in the country almost doubled, to 338bn yuan ($52bn). Add investments by local firms and China now matches Europe’s R&D tally (see chart). Only America splurges more.