Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Mac OS X 10.15.7
Desktop
3 months ago
Test name Executions per second
hasAttribute 7662089.0 Ops/sec
getAttribute 7464404.0 Ops/sec
classList 6939576.0 Ops/sec
hasAttribute single 8946864.0 Ops/sec
getAttribute single 7728565.5 Ops/sec
classList single 7003661.0 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single