HTML Preparation code:
Script Preparation code:
Tests:
  • className

  • setAttribute

  • classList

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    className
    setAttribute
    classList

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: yesterday)
Mozilla/5.0 (Linux; Android 7.0; MI-CH-82S) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.92 Mobile Safari/537.36
Chrome Mobile 77 on Android 7.0
View result in a separate tab
Test name Executions per second
className 267.0 Ops/sec
setAttribute 182.0 Ops/sec
classList 190.3 Ops/sec