Which is more optimized, 1 macro or 100 "execute if"s.

Very simple question. For example, I have a command that runs /damage on a targeted entity and the damage that is applied is taken from a scoreboard. Would it be more efficient to have 1 function macro that inputs the damage value from storage, or 100 execute ifs to cover as many damage values as possible?
Continue to help post