Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox 100
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
hasAttribute 5425511.0 Ops/sec
getAttribute 4157183.5 Ops/sec
classList 4686239.0 Ops/sec
hasAttribute single 5548354.0 Ops/sec
getAttribute single 4167186.2 Ops/sec
classList single 4555623.0 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;