Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Windows
Desktop
14 days ago
Test name Executions per second
style.setProperty 38.2 Ops/sec
style.cssText 45.9 Ops/sec
style 40.4 Ops/sec
Object.assign 45.2 Ops/sec
setAttribute 504.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute


;