Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36 OPR/60.0.3255.95
Opera 60
Linux
Desktop
3 years ago
Test name Executions per second
Pure JS ID Selector 76332.9 Ops/sec
Pure JS Class Selector 66924.6 Ops/sec
Pure JS Data Hook 51184.5 Ops/sec
jQuery ID Selector 57365.5 Ops/sec
jQuery Class Selector 42731.0 Ops/sec
jQuery Data Hook Selector 35312.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


;