Test case name | Result |
---|---|
style.setProperty | |
style.cssText | |
style | |
Object.assign | |
setAttribute |
Test name | Executions per second |
---|---|
style.setProperty | 216320.3 Ops/sec |
style.cssText | 317483.4 Ops/sec |
style | 329686.4 Ops/sec |
Object.assign | 255346.8 Ops/sec |
setAttribute | 1727193.0 Ops/sec |