HTML Preparation code:
Tests:
  • Pure JS ID Selector

  • Pure JS Class Selector

  • Pure 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
    Pure JS ID Selector
    Pure JS Class Selector
    Pure 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: one year ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 17_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Mobile/15E148 Safari/604.1
Mobile Safari 17 on iOS 17.1
View result in a separate tab
Test name Executions per second
Pure JS ID Selector 1687635.5 Ops/sec
Pure JS Class Selector 1650560.8 Ops/sec
Pure JS Data Hook 1210550.1 Ops/sec
jQuery ID Selector 1477283.9 Ops/sec
jQuery Class Selector 1216392.0 Ops/sec
jQuery Data Hook Selector 1000530.5 Ops/sec


;