Run details:
Mozilla/5.0 (Android 11; Mobile; rv:103.0) Gecko/103.0 Firefox/103.0
Firefox Mobile 103
Android
Mobile
2 years ago
Test name Executions per second
Pure JS ID Selector 40903.5 Ops/sec
Pure JS Class Selector 38817.1 Ops/sec
Pure JS Data Hook 29074.6 Ops/sec
jQuery ID Selector 33517.6 Ops/sec
jQuery Class Selector 29828.0 Ops/sec
jQuery Data Hook Selector 26230.6 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