Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Linux
Desktop
9 months ago
Test name Executions per second
style.setProperty 9.0 Ops/sec
style.cssText 29.7 Ops/sec
style 27.1 Ops/sec
Object.assign 8.3 Ops/sec
setAttribute 501.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute


;