HTML Preparation code:
Tests:
  • hasAttribute

  • getAttribute

  • classList

  • hasAttribute single

  • getAttribute single

  • classList single

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    hasAttribute
    getAttribute
    classList
    hasAttribute single
    getAttribute single
    classList single

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Windows
View result in a separate tab
Test name Executions per second
hasAttribute 3903631.5 Ops/sec
getAttribute 3637967.0 Ops/sec
classList 3619180.8 Ops/sec
hasAttribute single 4504949.0 Ops/sec
getAttribute single 3769308.5 Ops/sec
classList single 3757313.2 Ops/sec


;