Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0
Firefox 127
Windows
Desktop
6 months ago
Test name Executions per second
hasAttribute 9345720.0 Ops/sec
getAttribute 6673050.0 Ops/sec
classList 7525939.5 Ops/sec
hasAttribute single 9381653.0 Ops/sec
getAttribute single 6841017.0 Ops/sec
classList single 7129610.0 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single