Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110
Ubuntu
Desktop
one year ago
Test name Executions per second
style.setProperty 12.6 Ops/sec
style.cssText 31.9 Ops/sec
style 30.2 Ops/sec
Object.assign 11.5 Ops/sec
setAttribute 639.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute


;