So during the two years of the pandemic,
US average growth is projected to be 1.9% (-3.5% followed by 5.6%)
China average growth is 5.2% (2.3% followed by 8.1%)
Overall China's growth beats the US by about 3.3 percentage points, which is very similar to 2019 when China grew at 6% and the US at 2.3%. I dare say China would have come out a much bigger winner if it had wanted to. The US gov't has been doing everything it can in the past couple years to rev up growth, to the point where it has now created an inflation problem for itself, whereas China has been cracking down on economic activity like mad (especially 2021). If each economy had been left to its natural devices, China's Covid-free economy would have outperformed by a much greater margin.
Why would you use two different calculations for the US and China?
if Chinese average growth rate is 5.2% (by simply adding both years 2.3+8.1 then dividing by two) then US average growth rate is 1.05% (-3.5+5.6 then divide by two).
Chinese = 5.2% average annual growth rate
US = 1.05% average annual growth rate
China's average growth rate was 4.95x as much (+395% more) over that two year period.
Of course this doesn't actually tell you how much each country grew, just the average rate of growth (and not even taking into account compounding).
As
@manqiangrexue states, the more appropriate way to calculate is the difference between starting point and ending point (you actually used this for the US in your comment, but then you calculated only the average annual growth rate for China and used that to compare to the total growth of the US over the two year period):
US is 1.9% larger over the two year period
China is 10.6% larger over the two year period
China grew 5.58x as fast (458% more) over the two year period of 2020 and 2021 as compared to the US.
What's amazing is China is so big now (almost 80% of the US in annual nominal GDP, including HK/MO) that growth differentials like that create an immense difference in economic output added. If China grew 5.58x as much in the next two year period again for example, it would add 4.46x as much in gross value.
So if the US added $400 billion to its GDP over a two year period, China would add $1.784 trillion.