Run details:
Mozilla/5.0 (Android 11; Mobile; rv:103.0) Gecko/103.0 Firefox/103.0
Firefox Mobile 103
Android
Mobile
2 years ago
Test name Executions per second
style.setProperty 3.0 Ops/sec
style.cssText 7.4 Ops/sec
style 6.8 Ops/sec
Object.assign 3.5 Ops/sec
setAttribute 143.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute


;