Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
Chrome 81
Mac OS X 10.15.3
Desktop
4 years ago
Test name Executions per second
setProperty Single Random Value 153949.4 Ops/sec
setProperty All Random Values 93369.4 Ops/sec
setAttribute Fixed Values 209452.2 Ops/sec
setAttribute Single Random Value 136430.2 Ops/sec
setAttributey All Random Values 102426.9 Ops/sec
Style by name Fixed Values 166646.0 Ops/sec
Style by name Single Random Value 129880.5 Ops/sec
Style by name All Random Values 79795.5 Ops/sec
Style by property Fixed Values 173988.7 Ops/sec
Style by property Single Random Value 128033.1 Ops/sec
Style by property All Random Values 79424.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • setProperty Single Random Value

  • setProperty All Random Values

  • setAttribute Fixed Values

  • setAttribute Single Random Value

  • setAttributey All Random Values

  • Style by name Fixed Values

  • Style by name Single Random Value

  • Style by name All Random Values

  • Style by property Fixed Values

  • Style by property Single Random Value

  • Style by property All Random Values