Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94
Linux
Desktop
2 years ago
Test name Executions per second
hasAttribute 5018489.0 Ops/sec
getAttribute 3639222.8 Ops/sec
classList 4051786.2 Ops/sec
hasAttribute single 5093524.0 Ops/sec
getAttribute single 3599342.2 Ops/sec
classList single 4018585.5 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;