Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 Safari/604.1
Mobile Safari 15
iOS 15.1
Mobile
2 years ago
Test name Executions per second
Pure JS ID Selector 581679.4 Ops/sec
Pure JS Class Selector 568318.4 Ops/sec
Pure JS Data Hook 430337.5 Ops/sec
jQuery ID Selector 355786.8 Ops/sec
jQuery Class Selector 250622.2 Ops/sec
jQuery Data Hook Selector 209440.9 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


;