Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Windows
Desktop
8 months ago
Test name Executions per second
hasAttribute 8339581.5 Ops/sec
getAttribute 6151320.5 Ops/sec
classList 7036161.0 Ops/sec
hasAttribute single 9088269.0 Ops/sec
getAttribute single 6517364.5 Ops/sec
classList single 6842835.0 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;