You can't fool the optimiser

15 points by fernplus


adam_d_ruppe

This is why, when doing benchmarks, you always need to check the disassembly too. As you strip things down, you often hit a point where the optimizer thinks your code didn't actually do anything of value and just deletes the whole test!