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: 4 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
Chrome 86 on Mac OS X 10.13.6
View result in a separate tab
Test name Executions per second
className 3268.9 Ops/sec
setAttribute 1504.8 Ops/sec
classList 797.1 Ops/sec


;