I generally try to stay seated as long as possible. When I do stand it's either to spin back up to preferred cadence, or to power up. If I'm on the pedals thought I find the trick is to keep the bike as still as humanly possible to keep as much energy as possible getting into the forward momentum as opposed to rocking back and forth.