Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36
Chrome Mobile 123
Android
Mobile
8 months ago
Test name Executions per second
Pure JS ID Selector 56617.2 Ops/sec
Pure JS Class Selector 62954.0 Ops/sec
Pure JS Data Hook 59806.5 Ops/sec
jQuery ID Selector 60969.5 Ops/sec
jQuery Class Selector 36354.5 Ops/sec
jQuery Data Hook Selector 19537.1 Ops/sec
HTML Preparation code:
Tests:
  • Pure JS ID Selector

  • Pure JS Class Selector

  • Pure JS Data Hook

  • jQuery ID Selector

  • jQuery Class Selector

  • jQuery Data Hook Selector