Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0
Firefox 103
Windows
Desktop
2 years ago
Test name Executions per second
hasAttribute 8449828.0 Ops/sec
getAttribute 5410242.0 Ops/sec
classList 6093892.0 Ops/sec
hasAttribute single 8361541.0 Ops/sec
getAttribute single 5485895.0 Ops/sec
classList single 5916638.0 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;