Run details:
Mozilla/5.0 (Android 12; Mobile; rv:103.0) Gecko/103.0 Firefox/103.0
Firefox Mobile 103
Android
Mobile
2 years ago
Test name Executions per second
hasAttribute 1305754.6 Ops/sec
getAttribute 1018567.2 Ops/sec
classList 1195334.4 Ops/sec
hasAttribute single 1331598.2 Ops/sec
getAttribute single 1027694.2 Ops/sec
classList single 1183747.0 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single