Germany’s pre-WW II population was less than twice Ukraine’s 2022 population.
Germany’s military losses were about 5 million killed and 7 million wounded.
https://en.wikipedia.org/wiki/World_War_II_casualties
On the other hand, the Ukraine war is what von Clausewitz called a “cabinet war”, a politically motivated war fought with limited means for a limited end, rather than a “total war” fought with all resources for existence.
It is a "cabinet war" on the Russian side.
It is a "total war" on the Ukrainian side.