Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Mobile/15E148 Safari/604.1
Mobile Safari 16
iOS 16.1
Mobile
2 years ago
Test name Executions per second
Pure JS ID Selector 1491811.5 Ops/sec
Pure JS Class Selector 1447656.0 Ops/sec
Pure JS Data Hook 1125567.8 Ops/sec
jQuery ID Selector 1126271.1 Ops/sec
jQuery Class Selector 890677.6 Ops/sec
jQuery Data Hook Selector 745783.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


;