Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0
Firefox 107
Windows
Desktop
one year ago
Test name Executions per second
style.setProperty 10.2 Ops/sec
style.cssText 28.9 Ops/sec
style 25.4 Ops/sec
Object.assign 9.6 Ops/sec
setAttribute 522.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute


;