Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Mobile Safari/537.36
Chrome Mobile 125
Android
Mobile
6 months ago
Test name Executions per second
style.setProperty 9.7 Ops/sec
style.cssText 17.7 Ops/sec
style 13.6 Ops/sec
Object.assign 10.5 Ops/sec
setAttribute 129.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute


;