HTML Preparation code:
Tests:
  • classList with unique class

  • className

  • classList with multiple classes

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    classList with unique class
    className
    classList with multiple classes

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Chrome 77 on Mac OS X 10.14.0
View result in a separate tab
Test name Executions per second
classList with unique class 20.8 Ops/sec
className 23.1 Ops/sec
classList with multiple classes 23.0 Ops/sec


;