Like washing machines, the energy ratings on dishwashers are calculated by how much energy they use over 100 cycles. The test uses the Eco programme on a typical load of standard place setting items. These are items like knives, forks, plates, glasses, and cups.
There are plenty of A and B rated dishwashers available to buy these days. Anything above C is generally considered good if you’re looking to trim those energy bills.