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: 4 months ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 18_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/130.0.6723.90 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 130 on iOS 18.1
View result in a separate tab
Test name Executions per second
Class 2163873.8 Ops/sec
ID 4278410.5 Ops/sec
data attribute 1381483.2 Ops/sec