Run details:
Mozilla/5.0 (X11; CrOS x86_64 14909.100.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Chrome 104
Chrome OS 14909.100.0
Desktop
2 years ago
Test name Executions per second
Pure JS ID Selector 14840.3 Ops/sec
Pure JS Class Selector 14528.5 Ops/sec
Pure JS Data Hook 14506.4 Ops/sec
jQuery ID Selector 14641.6 Ops/sec
jQuery Class Selector 12889.8 Ops/sec
jQuery Data Hook Selector 11564.3 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