Can someone help decipher which is better perfomance wise

I’ve written two piece of code differently but do the same thing. i want to see which is better performance wise. but i’m not sure how to tell. i tried using microprofiler. but i couldnt find the labels i place . i i’m using performance stats to tell. but i’m still not sure. so i’d like help to find out which is better

Method 1:


Performance Stats: https://gyazo.com/ffd797636d48a245a0176b830ed99f8b

Method 2:


Perfomance Stats: https://gyazo.com/332e217d0b70a3ebb63a15ba2da1e46a

Debug the code directly. Add tick checks, for example, against certain sections of your code or how long one whole iteration takes to run for any loops. Consider using the debug library’s profilebegin and profileend to open labels in the MicroProfiler to check how your code is fairing.

Performance Stats is representative of all collective systems operating on the client and doesn’t really say anything about the performance of this code specifically. As it stands right now, the differences aside from a few CPU spikes are fairly negligible and I would just pick the one that looks more readable to me, that being the second one (other than the fact that the wait is at the start of an iteration, rather than at the end, for some reason).

I tried the microprofiler. and used the profilebegin and profileend. but i couldn’t find the labels. i saw the framerate drop. but i couldnt see the label.