Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Linux
Desktop
7 months ago
Test name Executions per second
style.setProperty 13.8 Ops/sec
style.cssText 18.8 Ops/sec
style 17.7 Ops/sec
Object.assign 14.8 Ops/sec
setAttribute 189.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute


;