Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36
Chrome Mobile 116
Android
Mobile
one year ago
Test name Executions per second
Pure JS ID Selector 59135.7 Ops/sec
Pure JS Class Selector 57867.2 Ops/sec
Pure JS Data Hook 46530.2 Ops/sec
jQuery ID Selector 52953.0 Ops/sec
jQuery Class Selector 44455.2 Ops/sec
jQuery Data Hook Selector 39569.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