Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Linux
Desktop
10 months ago
Test name Executions per second
style.setProperty 44.6 Ops/sec
style.cssText 39.5 Ops/sec
style 33.2 Ops/sec
Object.assign 41.3 Ops/sec
setAttribute 132.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute