Run details:
Mozilla/5.0 (Linux; Android 11; moto g(50)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36
Chrome Mobile 104
Android
Mobile
2 years ago
Test name Executions per second
Vanilla JS ID Selector 1549705.5 Ops/sec
Vanilla JS Class Selector 1465812.9 Ops/sec
Vanilla JS Data Hook 334842.0 Ops/sec
jQuery ID Selector 637925.7 Ops/sec
jQuery Class Selector 272926.3 Ops/sec
jQuery Data Hook Selector 134032.2 Ops/sec
HTML Preparation code:
Tests:
  • Vanilla JS ID Selector

  • Vanilla JS Class Selector

  • Vanilla JS Data Hook

  • jQuery ID Selector

  • jQuery Class Selector

  • jQuery Data Hook Selector


;