Does wifi shutoff after activity upload?

I am curious....if wifi is only used for activity upload for the most part, does it turn on only after you save an activity to upload and then shut off on its own? If not, how much of an effect does it have on battery life?