Run details:
Mozilla/5.0 (Linux; Android 10; VOG-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Mobile Safari/537.36
Chrome Mobile 89
Android
Mobile
3 years ago
Test name Executions per second
Pure JS ID Selector 36889.4 Ops/sec
Pure JS Class Selector 35836.3 Ops/sec
Pure JS Data Hook 32183.2 Ops/sec
jQuery ID Selector 35061.9 Ops/sec
jQuery Class Selector 32149.2 Ops/sec
jQuery Data Hook Selector 28091.8 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