HTML Preparation code:
Tests:
  • Vanilla JS ID Selector

  • Vanilla JS Class Selector

  • Vanilla JS Data Hook

  • jQuery ID Selector

  • jQuery Class Selector

  • jQuery Data Hook Selector

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Vanilla JS ID Selector
    Vanilla JS Class Selector
    Vanilla JS Data Hook
    jQuery ID Selector
    jQuery Class Selector
    jQuery Data Hook Selector

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124 on Windows
View result in a separate tab
Test name Executions per second
Vanilla JS ID Selector 8651560.0 Ops/sec
Vanilla JS Class Selector 8151073.0 Ops/sec
Vanilla JS Data Hook 1943475.1 Ops/sec
jQuery ID Selector 3048060.8 Ops/sec
jQuery Class Selector 1444781.6 Ops/sec
jQuery Data Hook Selector 879245.2 Ops/sec