Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Mobile Safari/537.36
Chrome Mobile 118
Android
Mobile
11 months ago
Test name Executions per second
style.setProperty 19.6 Ops/sec
style.cssText 21.8 Ops/sec
style 17.8 Ops/sec
Object.assign 109.0 Ops/sec
setAttribute 88.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute