Hello,
Could you please tell me the use case of such an implementation? If you want to generate a PWM signal or toggle GPIO for some timing purposes, you can use hardware peripherals.
There are many variables that influence the frequency. Number of instructions, prefetching, wait states on crossbar switch...
Regards,
Daniel