Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:99.0) Gecko/20100101 Firefox/99.0
Firefox 99
Mac OS X 10.13
Desktop
2 years ago
Test name Executions per second
Pure JS ID Selector 35229.1 Ops/sec
Pure JS Class Selector 35326.4 Ops/sec
Pure JS Data Hook 29724.4 Ops/sec
jQuery ID Selector 32741.2 Ops/sec
jQuery Class Selector 28083.0 Ops/sec
jQuery Data Hook Selector 25861.1 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


;