As you probably can see the 5th does absolutely the same, but twice as fast. Also it takes a half as much blocks using the "if" way. And the bottom of the screen you can see how much time it takes to run each of the ways.
added branchless for comparison and well it is slow.