Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Mobile Safari/537.36
Chrome Mobile 137
Android
Mobile
11 months ago
Test name Executions per second
Vanilla JS ID Selector 26054978.0 Ops/sec
Vanilla JS Class Selector 16334926.0 Ops/sec
Vanilla JS Query Selector All 3381013.8 Ops/sec
Vanilla JS Query Selector 10256817.0 Ops/sec
Vanilla JS Data Hook 3112922.0 Ops/sec
jQuery ID Selector 2984523.2 Ops/sec
jQuery Class Selector 945630.7 Ops/sec
jQuery Data Hook Selector 911319.7 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