I got it now

... you went till battery died.
Indeed here is something not OK, it is too much difference.
Quick calc from your numbers and for 250W max:
10.84 Wh / km - M560
7.38 Wh / km - M820
+46% consumption
I have good measurement against M620 Innotrance (VESC controller, so lets assume has better efficiency as Bafang controllers). Same track, same power (1150W average), same time and in a finish with cca same battery left (9%). So dont see any big difference in battery consumption here. Had same range also with M600. Can not tell for M820.
As xtraman said, I would expect much less (up to 10% difference).
Xtramen, when is set 25% current (so 250W for M560 500W), controller is not going over this power, even under acceleration and heavy pedalling.