Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0
Firefox 116
Windows
Desktop
one year ago
Test name Executions per second
style.setProperty 8.0 Ops/sec
style.cssText 27.7 Ops/sec
style 25.0 Ops/sec
Object.assign 7.6 Ops/sec
setAttribute 488.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute


;