3 ms·
It would be nice to see measurements on how much less time and memory the more performant techniques take compared to their less performant counterparts in real
by emw 15y ago
It would be nice to see measurements on how much less time and memory the more performant techniques take compared to their less performant counterparts in realistic scenarios. Doing so might indicate a better ranking of the tips given. For example, the DOM insertion tip -- which drastically improves performance over the naive implementation -- is tip 9, and is probably far more useful than tips 4 (Optimize selectors for Sizzle’s ‘right to left’ model) and 5 (Use find() rather than context).
- marcins 15y agoYou could always set up some tests using jsperf.com. I don't believe it does memory usage though. Seems like people are testing the sort of things measured in this article at the moment too eg.: http://jsperf.com/jquery-multiple-id-perf http://jsperf.com/jquery-multiple-id-perf