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: 14 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124 on Windows
View result in a separate tab
Test name Executions per second
hasAttribute 7835270.0 Ops/sec
getAttribute 8595888.0 Ops/sec
classList 6606602.5 Ops/sec
hasAttribute single 11670426.0 Ops/sec
getAttribute single 7653030.5 Ops/sec
classList single 6298054.5 Ops/sec