Run details:
Mozilla/5.0 (Android 12; Mobile; rv:93.0) Gecko/93.0 Firefox/93.0
Firefox Mobile 93
Android
Mobile
3 years ago
Test name Executions per second
Pure JS ID Selector 43123.9 Ops/sec
Pure JS Class Selector 41898.1 Ops/sec
Pure JS Data Hook 33202.8 Ops/sec
jQuery ID Selector 38278.8 Ops/sec
jQuery Class Selector 31493.8 Ops/sec
jQuery Data Hook Selector 26701.9 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