The compiler generates assembly language code, which the make file passes to the linker and assembler programs, and then it becomes cooked down to a hex file. You can read the assembly that is produced and count the cycles, but then since you don't know assembly that might just be a deep rabbit hole you should save for later. Eventually that would be a good skill. At first, just get an LED blinking.
So you have a scope or frequency counter? You will eventually need one if you are going to do much in embedded. If you toggle a pin in your loop you can see the loop speed.
I've never used the pic you are using, so I don't have a nice header to dump on you. Anybody out there got a simple header for this chip in XC8?