HTML 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: 2 years ago)
Mozilla/5.0 (X11; CrOS x86_64 15054.98.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106 on Chrome OS 15054.98.0
View result in a separate tab
Test name Executions per second
className 5211.8 Ops/sec
setAttribute 1082.7 Ops/sec
classList 1164.8 Ops/sec


;