Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Mobile Safari/537.36
Chrome Mobile 119
Android
Mobile
one year ago
Test name Executions per second
Vanilla JS ID Selector 3525233.5 Ops/sec
Vanilla JS Class Selector 3052376.5 Ops/sec
Vanilla JS Query Selector All 1242907.1 Ops/sec
Vanilla JS Query Selector 2721587.8 Ops/sec
Vanilla JS Data Hook 898181.9 Ops/sec
jQuery ID Selector 1346789.2 Ops/sec
jQuery Class Selector 567027.8 Ops/sec
jQuery Data Hook Selector 416625.2 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