Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
11 months ago
Test name Executions per second
style.setProperty 29.0 Ops/sec
style.cssText 39.1 Ops/sec
style 34.8 Ops/sec
Object.assign 33.2 Ops/sec
setAttribute 397.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute


;