Run details:
Mozilla/5.0 (Android 11; Mobile; rv:97.0) Gecko/97.0 Firefox/97.0
Firefox Mobile 97
Android
Mobile
2 years ago
Test name Executions per second
Pure JS ID Selector 20194.8 Ops/sec
Pure JS Class Selector 20112.5 Ops/sec
Pure JS Data Hook 15942.1 Ops/sec
jQuery ID Selector 18413.7 Ops/sec
jQuery Class Selector 14531.7 Ops/sec
jQuery Data Hook Selector 12672.8 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


;