Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15
Safari 12
Mac OS X 10.13.6
Desktop
5 years ago
Test name Executions per second
Style by property Fixed Values 801921.9 Ops/sec
Style by name Fixed Values 806416.7 Ops/sec
setAttribute Fixed Values 5550398.0 Ops/sec
setProperty Fixed Values 848153.9 Ops/sec
Style by property Single Random Value 501268.6 Ops/sec
Style by name Single Random Value 502762.2 Ops/sec
setAttribute Single Random Value 388770.0 Ops/sec
setProperty Single Random Value 513821.9 Ops/sec
Style by property All Random Values 243987.6 Ops/sec
Style by name All Random Values 245792.7 Ops/sec
setAttributey All Random Values 214647.4 Ops/sec
setProperty All Random Values 246887.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Style by property Fixed Values

  • Style by name Fixed Values

  • setAttribute Fixed Values

  • setProperty Fixed Values

  • Style by property Single Random Value

  • Style by name Single Random Value

  • setAttribute Single Random Value

  • setProperty Single Random Value

  • Style by property All Random Values

  • Style by name All Random Values

  • setAttributey All Random Values

  • setProperty All Random Values