Loop performance

Hello good people! :beer:

I did a search but havent found any similar thread. So, my question is actually very simple: performance wise, is it better to have this?


for(i=1;i<=variavel;i++){
    //code
}

…or this?


function something(){
    //code
}
for(i=1;i<=variavel;i++){
    something();
}

Thanks!