I guess the internal loops would be called more so I would expect to see an increase in the runtime. You could check it by e.g. printing the number of invocations inside the loop and compare both approaches.