Wow, that's a lot faster. Kind of surprising that the browser does not figure it out. Looks like there still isn't a difference between == and ===, though.
Well `i % 1000` needs to do division while `i & 0x3ff` (equivalent to `i % 1024`) is a bitwise integer operator. But yeah, either == or === is so cheap in this context as to be all but undetectable compared to the rest of the stuff happening in this simple loop.