3 ms·
I would say you cannot deduce much from that micro-benchmark. On x86, loops depend on the alignment of the labels and branch instructions due to the branch pred
by raimue 11y ago
I would say you cannot deduce much from that micro-benchmark. On x86, loops depend on the alignment of the labels and branch instructions due to the branch prediction logic. You can actually make some loops faster by inserting nops inside the loop.
Since the result of the xor is never read and immediately overwritten by the following mov, I wonder if clever register renaming could actually detect that and discard the instruction.
- acqq 11y agoYes, I'm also suspicious about his claims of "this is faster than that." He doesn't demonstrate that the actually know how something like this should be correctly measured.