Note that as the heavy lifting is done by the exact same function, the only thing you measure is the overhead of calling the function.
And while python overhead is significant if you loop over very simple ops that take micro seconds. If your function actually does stuff, you won’t even see it.