Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Windows
Desktop
4 months ago
Test name Executions per second
hasAttribute 5652751.5 Ops/sec
getAttribute 5464465.5 Ops/sec
classList 5058773.0 Ops/sec
hasAttribute single 6138111.0 Ops/sec
getAttribute single 4833769.0 Ops/sec
classList single 4774372.5 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;