Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Linux
Desktop
one year ago
Test name Executions per second
Pure JS ID Selector 46514.6 Ops/sec
Pure JS Class Selector 48806.9 Ops/sec
Pure JS Data Hook 35099.9 Ops/sec
jQuery ID Selector 42785.2 Ops/sec
jQuery Class Selector 32780.5 Ops/sec
jQuery Data Hook Selector 27911.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


;