Run details:
Mozilla/5.0 (Android 8.0.0; Mobile; rv:88.0) Gecko/88.0 Firefox/88.0
Firefox Mobile 88
Android 8.0.0
Mobile
3 years ago
Test name Executions per second
hasAttribute 382821.6 Ops/sec
getAttribute 264105.2 Ops/sec
classList 341927.3 Ops/sec
hasAttribute single 398206.1 Ops/sec
getAttribute single 272921.2 Ops/sec
classList single 344694.3 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;