Editing jQuery Selector Perf - Check different selectors This edit will create a new revision. Your details (optional) Name Email (won’t be displayed; might be used for Gravatar) URL Test case details Title * Published (uncheck if you want to fiddle around before making the page public) Description (in case you feel further explanation is needed)(Markdown syntax is allowed) Are you a spammer? (just answer the question) Preparation code Preparation code HTML (this will be inserted in the <body> of a valid HTML5 document in standards mode) (useful when testing DOM operations or including libraries) <div id="step1" class="step "> <div class="instructions">Choose an option in the steps before this one to get a choice</div> <select id="filter_0" class="filter"> <option value="">--- Select an option ---</option> <option value="77">Argentinia</option> <option value="78">Brazil</option> <option value="79">Chile</option> <option value="81">Ecuador</option> <option value="80">Uruguay</option> </select> </div> <div id="step2" class="step "> <div class="instructions">Choose an option in the steps before this one to get a choice</div> <select id="filter_77" class="filter"> <option value="">--- Select an option ---</option> <option value="82">Catamarca</option> <option value="83">Chaco</option> <option value="84">Chubut</option> <option value="85">Córdoba</option> <option value="86">Corrientes</option> <option value="87">Entre Ríos</option> <option value="88">Formosa</option> </select> <select id="filter_78" class="filter"> <option value="">--- Select an option ---</option> <option value="89">Acre</option> <option value="90">Alagoas</option> <option value="91">Amapá</option> <option value="92">Amazonas</option> </select> <select id="filter_79" class="filter"> <option value="">--- Select an option ---</option> <option value="95">Antofagasta</option> <option value="96">Atacama</option> <option value="93">Arica and Parinacota</option> <option value="94">Tarapacá</option> </select> <select id="filter_81" class="filter"> <option value="">--- Select an option ---</option> <option value="97">Azuay</option> <option value="98">Bolivar</option> <option value="99">Cañar</option> </select> <select id="filter_80" class="filter"> <option value="">--- Select an option ---</option> <option value="100">Artigas</option> <option value="101">Canelones</option> <option value="102">Cerro Largo</option> </select> </div> <div id="step3" class="step "> <div class="instructions">Choose an option in the steps before this one to get a choice</div> <select id="filter_82" class="filter"> <option value="">--- Select an option ---</option> <option value="103">San Fernando</option> </select> </div> <div id="step4" class="step"> <div id="filter_tags" class="filter"> </div> <div id="filter_hotel" class="filter"> </div> </div> <script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> Include JavaScript libraries as follows: <script src="//cdn.ext/library.js"></script> Define setup for all tests (variables, functions, arrays or other objects that will be used in the tests) (runs before each clocked test loop, outside of the timed code region) (e.g. define local test variables, reset global variables, clear canvas, etc.) (see FAQ) Define teardown for all tests (runs after each clocked test loop, outside of the timed code region) (see FAQ) Code snippets to compare Test 1 Title Async (check if this is an asynchronous test) Code $('.filter'); Test 2 Title Async (check if this is an asynchronous test) Code $('select.filter') Test 3 Title Async (check if this is an asynchronous test) Code $('.step:not(select)')