Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10) AppleWebKit/537.36 (KHTML, like Gecko) Version/8.0 Safari/537.36
Safari 8
Mac OS X 10.10
Desktop
2 years ago
Test name Executions per second
style.setProperty 6.5 Ops/sec
style.cssText 9.1 Ops/sec
style 8.3 Ops/sec
Object.assign 6.9 Ops/sec
setAttribute 8.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • style.setProperty

  • style.cssText

  • style

  • Object.assign

  • setAttribute


;