HTML Preparation code:
Tests:
  • setAttribute(...)

  • classList.add(...)

  • classList.value

  • ClassName

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    setAttribute(...)
    classList.add(...)
    classList.value
    ClassName

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 days ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36
Chrome Mobile 130 on Android
View result in a separate tab
Test name Executions per second
setAttribute(...) 38816.5 Ops/sec
classList.add(...) 24661.2 Ops/sec
classList.value 64911.8 Ops/sec
ClassName 117603.8 Ops/sec


;