jQuery selectors speed test

JavaScript performance comparison

Revision 72 of this test case created by

Preparation code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<input type="text" class="input-1" placeholder="this is a test for input-1">
<input type="text" class="input-2">
<input type="text" class="input-3" placeholder="this is a test for input-3">
<input type="text" class="input-4">
<input type="text" class="input-5" placeholder="this is a test for input-5">
<input type="text" class="input-6">
<input type="text" class="input-7" placeholder="this is a test for input-7">
<input type="text" class="input-8">
<input type="text" class="input-9">
<input type="text" class="input-10" placeholder="this is a test for input-10">
<input type="text" class="input-11">
<input type="text" class="input-12" placeholder="this is a test for input-12">
<input type="text" class="input-13">
<input type="text" class="input-14" placeholder="this is a test for input-14">
<input type="text" class="input-15">
<input type="text" class="input-16" placeholder="this is a test for input-16">
<input type="text" class="input-17">
<input type="text" class="input-18" placeholder="this is a test for input-18">
<input type="text" class="input-19">
<input type="text" class="input-20">
<input type="text" class="input-21">
<input type="text" class="input-22" placeholder="this is a test for input-22">
<input type="text" class="input-23">
<input type="text" class="input-24">
<input type="text" class="input-25">
<input type="text" class="input-26">
<input type="text" class="input-27" placeholder="this is a test for input-27">
<input type="text" class="input-28" placeholder="this is a test for input-28">
<input type="text" class="input-29">
<input type="text" class="input-30">
<input type="text" class="input-31">
<input type="text" class="input-32" placeholder="this is a test for input-32">
<input type="text" class="input-33">
<input type="text" class="input-34">
<input type="text" class="input-35" placeholder="this is a test for input-35">
<input type="text" class="input-36">
<input type="text" class="input-37" placeholder="this is a test for input-37">
<input type="text" class="input-38">
<input type="text" class="input-39">
<input type="text" class="input-40">
<input type="text" class="input-41">
<input type="text" class="input-42">
<input type="text" class="input-43">
<input type="text" class="input-44" placeholder="this is a test for input-44">
<input type="text" class="input-45">
<input type="text" class="input-46" placeholder="this is a test for input-46">
<input type="text" class="input-47">
<input type="text" class="input-48">
<input type="text" class="input-49">
<input type="text" class="input-50" placeholder="this is a test for input-50">
<input type="text" class="input-51">
<input type="text" class="input-52" placeholder="this is a test for input-52">
<input type="text" class="input-53" placeholder="this is a test for input-53">
<input type="text" class="input-54">
<input type="text" class="input-55">
<input type="text" class="input-56">
<input type="text" class="input-57">
<input type="text" class="input-58" placeholder="this is a test for input-58">
<input type="text" class="input-59">
<input type="text" class="input-60">
<input type="text" class="input-61" placeholder="this is a test for input-61">
<input type="text" class="input-62">
<input type="text" class="input-63">
<input type="text" class="input-64" placeholder="this is a test for input-64">
<input type="text" class="input-65">
<input type="text" class="input-66" placeholder="this is a test for input-66">
<input type="text" class="input-67">
<input type="text" class="input-68">
<input type="text" class="input-69">
<input type="text" class="input-70" placeholder="this is a test for input-70">
<input type="text" class="input-71">
<input type="text" class="input-72">
<input type="text" class="input-73">
<input type="text" class="input-74" placeholder="this is a test for input-74">
<input type="text" class="input-75" placeholder="this is a test for input-75">
<input type="text" class="input-76">
<input type="text" class="input-77">
<input type="text" class="input-78">
<input type="text" class="input-79" placeholder="this is a test for input-79">
<input type="text" class="input-80">
<input type="text" class="input-81">
<input type="text" class="input-82">
<input type="text" class="input-83" placeholder="this is a test for input-83">
<input type="text" class="input-84" placeholder="this is a test for input-84">
<input type="text" class="input-85">
<input type="text" class="input-86">
<input type="text" class="input-87">
<input type="text" class="input-88" placeholder="this is a test for input-88">
<input type="text" class="input-89">
<input type="text" class="input-90">
<input type="text" class="input-91" placeholder="this is a test for input-91">
<input type="text" class="input-92">
<input type="text" class="input-93">
<input type="text" class="input-94" placeholder="this is a test for input-94">
<input type="text" class="input-95">
<input type="text" class="input-96">
<input type="text" class="input-97" placeholder="this is a test for input-97">
<input type="text" class="input-98" placeholder="this is a test for input-98">
<input type="text" class="input-99" placeholder="this is a test for input-99">
<input type="text" class="input-100">
    

Preparation code output

<input type="text" class="input-1" placeholder="this is a test for input-1"> <input type="text" class="input-2"> <input type="text" class="input-3" placeholder="this is a test for input-3"> <input type="text" class="input-4"> <input type="text" class="input-5" placeholder="this is a test for input-5"> <input type="text" class="input-6"> <input type="text" class="input-7" placeholder="this is a test for input-7"> <input type="text" class="input-8"> <input type="text" class="input-9"> <input type="text" class="input-10" placeholder="this is a test for input-10"> <input type="text" class="input-11"> <input type="text" class="input-12" placeholder="this is a test for input-12"> <input type="text" class="input-13"> <input type="text" class="input-14" placeholder="this is a test for input-14"> <input type="text" class="input-15"> <input type="text" class="input-16" placeholder="this is a test for input-16"> <input type="text" class="input-17"> <input type="text" class="input-18" placeholder="this is a test for input-18"> <input type="text" class="input-19"> <input type="text" class="input-20"> <input type="text" class="input-21"> <input type="text" class="input-22" placeholder="this is a test for input-22"> <input type="text" class="input-23"> <input type="text" class="input-24"> <input type="text" class="input-25"> <input type="text" class="input-26"> <input type="text" class="input-27" placeholder="this is a test for input-27"> <input type="text" class="input-28" placeholder="this is a test for input-28"> <input type="text" class="input-29"> <input type="text" class="input-30"> <input type="text" class="input-31"> <input type="text" class="input-32" placeholder="this is a test for input-32"> <input type="text" class="input-33"> <input type="text" class="input-34"> <input type="text" class="input-35" placeholder="this is a test for input-35"> <input type="text" class="input-36"> <input type="text" class="input-37" placeholder="this is a test for input-37"> <input type="text" class="input-38"> <input type="text" class="input-39"> <input type="text" class="input-40"> <input type="text" class="input-41"> <input type="text" class="input-42"> <input type="text" class="input-43"> <input type="text" class="input-44" placeholder="this is a test for input-44"> <input type="text" class="input-45"> <input type="text" class="input-46" placeholder="this is a test for input-46"> <input type="text" class="input-47"> <input type="text" class="input-48"> <input type="text" class="input-49"> <input type="text" class="input-50" placeholder="this is a test for input-50"> <input type="text" class="input-51"> <input type="text" class="input-52" placeholder="this is a test for input-52"> <input type="text" class="input-53" placeholder="this is a test for input-53"> <input type="text" class="input-54"> <input type="text" class="input-55"> <input type="text" class="input-56"> <input type="text" class="input-57"> <input type="text" class="input-58" placeholder="this is a test for input-58"> <input type="text" class="input-59"> <input type="text" class="input-60"> <input type="text" class="input-61" placeholder="this is a test for input-61"> <input type="text" class="input-62"> <input type="text" class="input-63"> <input type="text" class="input-64" placeholder="this is a test for input-64"> <input type="text" class="input-65"> <input type="text" class="input-66" placeholder="this is a test for input-66"> <input type="text" class="input-67"> <input type="text" class="input-68"> <input type="text" class="input-69"> <input type="text" class="input-70" placeholder="this is a test for input-70"> <input type="text" class="input-71"> <input type="text" class="input-72"> <input type="text" class="input-73"> <input type="text" class="input-74" placeholder="this is a test for input-74"> <input type="text" class="input-75" placeholder="this is a test for input-75"> <input type="text" class="input-76"> <input type="text" class="input-77"> <input type="text" class="input-78"> <input type="text" class="input-79" placeholder="this is a test for input-79"> <input type="text" class="input-80"> <input type="text" class="input-81"> <input type="text" class="input-82"> <input type="text" class="input-83" placeholder="this is a test for input-83"> <input type="text" class="input-84" placeholder="this is a test for input-84"> <input type="text" class="input-85"> <input type="text" class="input-86"> <input type="text" class="input-87"> <input type="text" class="input-88" placeholder="this is a test for input-88"> <input type="text" class="input-89"> <input type="text" class="input-90"> <input type="text" class="input-91" placeholder="this is a test for input-91"> <input type="text" class="input-92"> <input type="text" class="input-93"> <input type="text" class="input-94" placeholder="this is a test for input-94"> <input type="text" class="input-95"> <input type="text" class="input-96"> <input type="text" class="input-97" placeholder="this is a test for input-97"> <input type="text" class="input-98" placeholder="this is a test for input-98"> <input type="text" class="input-99" placeholder="this is a test for input-99"> <input type="text" class="input-100">

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
input[placeholder]
jQuery('input[placeholder]')
pending…
[placeholder]
jQuery('[placeholder]')
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL.

0 Comments