Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Linux
Desktop
one year ago
Test name Executions per second
hasAttribute 4706521.5 Ops/sec
getAttribute 4388126.0 Ops/sec
classList 4147796.0 Ops/sec
hasAttribute single 5406806.5 Ops/sec
getAttribute single 4729086.0 Ops/sec
classList single 4291173.5 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;