Javascripts Loop Benchmarks
Tagged benchmark, efficiency, Javascript, looping
I tested a few looping techniques in the past, but I found a benchmark page which shows over 40 looping techniques and their running times. You can find the benchmark over here.
very interesting. I guess I’m going to cache the array length from now on, especially on elements collection. I just checked out at mootools source code for the each() function, and that’s what it does, woot.