Run details:
Mozilla/5.0 (Android 9; Mobile; rv:104.0) Gecko/104.0 Firefox/104.0
Firefox Mobile 104
Android
Mobile
2 years ago
Test name Executions per second
style.setProperty 2.2 Ops/sec
style.cssText 5.3 Ops/sec
style 4.9 Ops/sec
Object.assign 1.9 Ops/sec
setAttribute 97.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute


;