Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Firefox 109
Windows
Desktop
one year ago
Test name Executions per second
style.setProperty 11.0 Ops/sec
style.cssText 32.6 Ops/sec
style 30.3 Ops/sec
Object.assign 10.3 Ops/sec
setAttribute 385.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute


;