Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox 100
Ubuntu
Desktop
2 years ago
Test name Executions per second
hasAttribute 3921126.0 Ops/sec
getAttribute 4589256.0 Ops/sec
classList 5719316.5 Ops/sec
hasAttribute single 6531060.0 Ops/sec
getAttribute single 4811669.0 Ops/sec
classList single 5649238.0 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;