Run details:
Mozilla/5.0 (Linux; Android 11; NX669J) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.106 Mobile Safari/537.36
Chrome Mobile 98
Android
Mobile
2 years ago
Test name Executions per second
Pure JS ID Selector 88061.9 Ops/sec
Pure JS Class Selector 85865.2 Ops/sec
Pure JS Data Hook 70844.6 Ops/sec
jQuery ID Selector 66068.8 Ops/sec
jQuery Class Selector 51774.4 Ops/sec
jQuery Data Hook Selector 47831.4 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