Energy efficiency in flocking