They typically have a very powerful 2.5 kilowatt heater they run in bursts - for like 5 mins when prewashing, for like 10 mins when starting the main wash, and like 10 mins again when drying.
In between those times, the machine uses only ~60 watts for pumps.
I have often pondered what a world of machines designed to meet solar output looked like - and for a dishwasher it would involve the heater being modulated to match the solar output (and knowing that sometimes the wash cycle would take longer if a cloud was overhead so heating was delayed by a half hour).