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 4745420.5 Ops/sec
Vanilla JS Class Selector 4157972.0 Ops/sec
Vanilla JS Query Selector All 1180285.9 Ops/sec
Vanilla JS Query Selector 3329570.8 Ops/sec
Vanilla JS Data Hook 773142.2 Ops/sec
jQuery ID Selector 1541704.5 Ops/sec
jQuery Class Selector 310144.9 Ops/sec
jQuery Data Hook Selector 202080.8 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