Best of jsperf (2000-2013) – Part 1/3
There are quite a few tests so I’ve split them into the following Speed Test groups:
- Part 3 – Miscellaneous Speed Tests (the best of the rest!)
As always leave comments and if I’ve missed any you think are important please share. Let’s improve our coding and speed up the web!
jQuery Selector Speed Tests
These tests compare the performance of the different jQuery selectors.
id vs class vs tag vs pseudo vs. attribute selectors
Quick look at the speed of different jQuery selectors.
String concatenation vs Regex
jQuery .size() vs .length.
DOM Caching vs No DOM Cache
Caching DOM references outside of a loop
DOM caching excercise and node types
jQuery filter vs find.
Also see JQUERY FILTER FUNCTION EXAMPLE.