An electric hob transfers 15,000 joules of thermal energy, and 12,000 joules of thermal energy passes into the water. The efficiency is 0.8 or 80%.
An electric current delivers 60 watts of power to a light bulb, and 3 watts of electrical energy are transferred to light energy. The efficiency is 0.05 or 5%.