Run details:
Mozilla/5.0 (Linux; Android 10; SM-A405FN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Mobile Safari/537.36
Chrome Mobile 88
Android
Mobile
3 years ago
Test name Executions per second
Pure JS ID Selector 15086.8 Ops/sec
Pure JS Class Selector 16856.6 Ops/sec
Pure JS Data Hook 11449.1 Ops/sec
jQuery ID Selector 14863.7 Ops/sec
jQuery Class Selector 8949.1 Ops/sec
jQuery Data Hook Selector 7902.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