Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Mobile Safari/537.36
Chrome Mobile 113
Android
Mobile
one year ago
Test name Executions per second
Vanilla JS ID Selector 2514514.5 Ops/sec
Vanilla JS Class Selector 2310347.0 Ops/sec
Vanilla JS Query Selector All 690309.1 Ops/sec
Vanilla JS Query Selector 2141130.2 Ops/sec
Vanilla JS Data Hook 508700.3 Ops/sec
jQuery ID Selector 1172779.1 Ops/sec
jQuery Class Selector 314476.2 Ops/sec
jQuery Data Hook Selector 186338.9 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