HTML Preparation code:
AخA
 
1
<div class="hello" id="hello" data-hello>Hello</div>
2
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js'></script>
Tests:
  • Class

     
    $('.hello');
  • ID

     
    $('#hello');
  • data attribute

     
    $('[data-hello]');
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Class
    ID
    data attribute

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0
Firefox 104 on Linux
View result in a separate tab
Test name Executions per second
Class 1594168.0 Ops/sec
ID 4898565.5 Ops/sec
data attribute 768414.9 Ops/sec