Speed difference when storing annonymous function in variable vs. function

Because test1 is a non-const global variable (while test2 is a function).

5 Likes