3 ms·
Please don't just post a link like this. Apparently I'm expected to run it in chrome and see that do is 10x slower than the other two options. But I ran it in
by Dylan16807 13y ago
Please don't just post a link like this. Apparently I'm expected to run it in chrome and see that do is 10x slower than the other two options.
But I ran it in firefox and got completely different results, namely the for loop handling hundreds of millions of items per second, and the loops with .shift() being handled literally and going at the speed of sludge (it reports 0.25 items per second).