You will need to test it on your architecture if you really want to know.
But in general, on modern processors there is a minimum cost of an unconditional transition. It is largely largely free of a small amount of cache overhead. It will probably run in parallel with neighboring instructions, so it may not even cost you a clock cycle. This is because a jump can be performed by one of several parallel execution blocks .
Look at it this way: a single read of main memory is probably 100-200 times more expensive.
This is a subset of branch prediction in general, but there is no risk of mistaken branch prediction, so you can eliminate the need to reset the instruction pipeline , which is the main cost associated with conditional branching.
source share