HTML Preparation code:
Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    className
    classList with array from
    classList with spread operator

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Windows
View result in a separate tab
className
8K/s
classList with spread operator
2K/s
classList with array from
1K/s
View exact numbers
Test name Executions per second
className 8,298 Ops/sec
classList with spread operator 1,624 Ops/sec
classList with array from 1,350 Ops/sec