4 ms·
> faster than C here It's "faster than C which swims with the tied hands": when you allow all optimizations C is "infinitely fast" in this given case, as the l
by acqq 9y ago
> faster than C here
It's "faster than C which swims with the tied hands": when you allow all optimizations C is "infinitely fast" in this given case, as the loops aren't even executed but the results precomputed in the compile time.
Can you give your numbers for Chrome? Typically it was slower than Firefox for such Javascript since a while. Note that to make comparison fair you have to use a while loop in a while loop and to print the resulting counters after both loops finish.