Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Windows
Desktop
11 days ago
Test name Executions per second
hasAttribute 2421646.2 Ops/sec
getAttribute 2338443.5 Ops/sec
classList 2165832.0 Ops/sec
hasAttribute single 2760837.0 Ops/sec
getAttribute single 2316915.0 Ops/sec
classList single 2263535.5 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;