Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Windows
Desktop
6 months ago
Test name Executions per second
hasAttribute 4160707.8 Ops/sec
getAttribute 4085380.0 Ops/sec
classList 3893622.0 Ops/sec
hasAttribute single 4950966.0 Ops/sec
getAttribute single 4258806.5 Ops/sec
classList single 3951767.8 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;