HTML Preparation code:
AخA
 
1
<div id="parent" class="c-1">
2
  <select></select>
3
  <select></select>
4
  <select></select>
5
  <select></select>
6
  <select></select>
7
  <select></select>
8
  <select></select>
9
  <select></select>
10
  <select></select>
11
  <select></select>
12
</div>
13
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js'></script>
Tests:
  • by id and select

     
    $('#parent select')
  • by tag, class and select

     
    $('div.c-1 select')
  • by class and select

     
    $('.c-1 select')
  • id -> find by select

     
    $("#parent").find("select");
  • class -> find by select

     
    $(".c-1").find("select");
  • tag and class -> find by select

     
    $("div.c-1").find("select");
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    by id and select
    by tag, class and select
    by class and select
    id -> find by select
    class -> find by select
    tag and class -> find by select

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36
Chrome 84 on Windows
View result in a separate tab
Test name Executions per second
by id and select 189403.9 Ops/sec
by tag, class and select 178034.6 Ops/sec
by class and select 122498.9 Ops/sec
id -> find by select 133873.2 Ops/sec
class -> find by select 154649.6 Ops/sec
tag and class -> find by select 102761.7 Ops/sec