Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36
Chrome Mobile 116
Android
Mobile
one year ago
Test name Executions per second
Vanilla JS ID Selector 4257328.5 Ops/sec
Vanilla JS Class Selector 3891065.0 Ops/sec
Vanilla JS Query Selector All 1183409.8 Ops/sec
Vanilla JS Query Selector 3199378.5 Ops/sec
Vanilla JS Data Hook 756082.6 Ops/sec
jQuery ID Selector 1368791.9 Ops/sec
jQuery Class Selector 320482.8 Ops/sec
jQuery Data Hook Selector 198234.6 Ops/sec
HTML Preparation code:
Tests:
  • Vanilla JS ID Selector

  • Vanilla JS Class Selector

  • Vanilla JS Query Selector All

  • Vanilla JS Query Selector

  • Vanilla JS Data Hook

  • jQuery ID Selector

  • jQuery Class Selector

  • jQuery Data Hook Selector


;