HTML Preparation code:
Script Preparation code:
Tests:
  • element.style.setProperty('color', 'red')

  • element.style.cssText = 'color: red'

  • el.setAttribute('style', 'color: red')

  • el.style.color = 'red'

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    element.style.setProperty('color', 'red')
    element.style.cssText = 'color: red'
    el.setAttribute('style', 'color: red')
    el.style.color = 'red'

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:

No previous run results

This benchmark does not have any results yet. Be the first one to run it!