3 ms·
One thing I've learned from jsPerf is that this sort of micro-tuning tends to be particularly fruitless in JavaScript. Even if a tweak increases speed consisten
by bulatb 13y ago
One thing I've learned from jsPerf is that this sort of micro-tuning tends to be particularly fruitless in JavaScript. Even if a tweak increases speed consistently across the target browsers, there's no telling which will optimize what cases in the next few versions.
Basic things like caching DOM lookups are always good, but not so much the little things.
- parksy 13y agoYup, I just ran the tests again and the results are completely different and what difference there is is basically negligible.