I doubt that the overall code size affects the time spent in the loop. The code for a function is there, for one to call. But if you don't call it, then no time is spent on that function.
You can measure the time spent in the loop by using millis().