Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Chrome 117
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
hasAttribute 8617257.0 Ops/sec
getAttribute 8465836.0 Ops/sec
classList 7824930.0 Ops/sec
hasAttribute single 10268088.0 Ops/sec
getAttribute single 8973138.0 Ops/sec
classList single 8042075.0 Ops/sec
HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single


;