Run details:
Mozilla/5.0 (Linux; Android 13; SM-F721B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36
Chrome Mobile 111
Android
Mobile
one year ago
Test name Executions per second
Pure JS ID Selector 85339.8 Ops/sec
Pure JS Class Selector 80644.8 Ops/sec
Pure JS Data Hook 71417.0 Ops/sec
jQuery ID Selector 69194.5 Ops/sec
jQuery Class Selector 66353.1 Ops/sec
jQuery Data Hook Selector 49905.4 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