HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    style.setProperty
    style.cssText
    style
    Object.assign
    setAttribute

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 9 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Chrome 96 on Mac OS X 10.15.3
View result in a separate tab
Test name Executions per second
style.setProperty 149.7 Ops/sec
style.cssText 15.8 Ops/sec
style 13.2 Ops/sec
Object.assign 10.5 Ops/sec
setAttribute 14.0 Ops/sec