Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Mobile/15E148 Safari/604.1
Mobile Safari 17
iOS 17.1
Mobile
one year ago
Test name Executions per second
Pure JS ID Selector 1715271.6 Ops/sec
Pure JS Class Selector 1664491.2 Ops/sec
Pure JS Data Hook 1240990.6 Ops/sec
jQuery ID Selector 1368769.2 Ops/sec
jQuery Class Selector 1076846.6 Ops/sec
jQuery Data Hook Selector 892666.6 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