Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0
Firefox 86
Ubuntu
Desktop
3 years ago
Test name Executions per second
hasAttribute 4513022.0 Ops/sec
getAttribute 3442248.8 Ops/sec
classList 3985894.5 Ops/sec
hasAttribute single 4540647.5 Ops/sec
getAttribute single 3527008.0 Ops/sec
classList single 3966926.8 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;