You can drop down to C and call it from MicroPython if you want to count cycles.
Of course, you have to recompile your C every time it changes, which is annoying when you're used to the REPL workflow.