Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Mac OS X 10.15.7
Desktop
9 months ago
Test name Executions per second
hasAttribute 5631571.0 Ops/sec
getAttribute 5681903.5 Ops/sec
classList 5094742.0 Ops/sec
hasAttribute single 6572069.5 Ops/sec
getAttribute single 5776476.0 Ops/sec
classList single 5115067.5 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;