Run details:
Mozilla/5.0 (Linux; Android 13; SM-A715F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36
Chrome Mobile 109
Android
Mobile
one year ago
Test name Executions per second
Pure JS ID Selector 34416.7 Ops/sec
Pure JS Class Selector 33814.2 Ops/sec
Pure JS Data Hook 31527.0 Ops/sec
jQuery ID Selector 31117.3 Ops/sec
jQuery Class Selector 24465.3 Ops/sec
jQuery Data Hook Selector 20588.5 Ops/sec
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