Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
hasAttribute 4847204.0 Ops/sec
getAttribute 3528590.8 Ops/sec
classList 4247020.5 Ops/sec
hasAttribute single 5060901.0 Ops/sec
getAttribute single 3637225.0 Ops/sec
classList single 4003512.8 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single