Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Linux
Desktop
one year ago
Test name Executions per second
hasAttribute 5687186.5 Ops/sec
getAttribute 5572509.0 Ops/sec
classList 5115864.5 Ops/sec
hasAttribute single 6883640.0 Ops/sec
getAttribute single 5840319.0 Ops/sec
classList single 5582085.0 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;