Online average-case analyses and energy-efficient schedulings