Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Firefox 109
Windows
Desktop
one year ago
Test name Executions per second
hasAttribute 6412635.0 Ops/sec
getAttribute 4734165.0 Ops/sec
classList 5444278.0 Ops/sec
hasAttribute single 6495514.0 Ops/sec
getAttribute single 4731233.5 Ops/sec
classList single 4227477.5 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;