Quick vector initialization efficiency question

Assuming they actually give the same result, the second one would likely be faster (you can never be sure until you profile it, because compiler optimizations), but by such a small margin that it wouldn’t matter unless you have to run this millions of times.