Simple conditional loop

You can check with @code_llvm or @code_native the generated assembly code to see if the compiler “cheated”.
In general 200 microseconds for 1M loop iterations is not too bad (if the compiler is not able to optimize the loop away), it is still more than 1 loop iteration per CPU cycle.