JavaScript performance comparison Revision 7 of this test case created by on 2011-11-3 Preparation code <script src="http://code.jquery.com/jquery-1.7.min.js"> </script> <script> /* dollarDom jQuery Plugin v2.0 Copyright 2011 Robert Messerle Site: http://dollardom.robertmesserle.com/ */ (function($) { $.dom = function(str, obj, attr) { var tag = str.match(/^[\w\d]+/i)[0], classes = str.match(/\.[\