Question: how to work out how much energy is wasted?
Answer: It is computed Input Power minus output power. For example you have a PC power supply for your computer. You can measure the input power by taking AC measurements, say 1A at 120VAC = 120 Watts. The wasted power is 120W - 102 W = 18 W.