Run details:
Mozilla/5.0 (Linux; Android 12; SAMSUNG SM-G981N) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/16.2 Chrome/92.0.4515.166 Mobile Safari/537.36
Chrome Mobile 92
Android
Mobile
2 years ago
Test name Executions per second
style.setProperty 9.4 Ops/sec
style.cssText 10.0 Ops/sec
style 7.4 Ops/sec
Object.assign 7.6 Ops/sec
setAttribute 5.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute