HTML Preparation code:
Script Preparation code:
Tests:
  • setProperty method

  • set property

  • change cssText

  • add cssText

  • change multi cssText

  • setAttribute method

  • multi setAttribute method

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    setProperty method
    set property
    change cssText
    add cssText
    change multi cssText
    setAttribute method
    multi setAttribute method

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 Edg/96.0.1054.41
Chrome 96 on Windows
View result in a separate tab
Test name Executions per second
setProperty method 84918.5 Ops/sec
set property 82238.3 Ops/sec
change cssText 57824.8 Ops/sec
add cssText 25731.7 Ops/sec
change multi cssText 112094.2 Ops/sec
setAttribute method 37148.1 Ops/sec
multi setAttribute method 72884.3 Ops/sec