Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
style.setProperty 7.8 Ops/sec
style.cssText 22.7 Ops/sec
style 21.0 Ops/sec
Object.assign 7.5 Ops/sec
setAttribute 316.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute


;