Test case name | Result |
---|---|
style.setProperty | |
style.cssText+= | |
style.xxx | |
Object.assign | |
setAttribute | |
style.cssText= |
Test name | Executions per second |
---|---|
style.setProperty | 2.3 Ops/sec |
style.cssText+= | 0.7 Ops/sec |
style.xxx | 2.1 Ops/sec |
Object.assign | 1.8 Ops/sec |
setAttribute | 24.3 Ops/sec |
style.cssText= | 2.3 Ops/sec |