Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Chrome 80
Mac OS X 10.14.6
Desktop
4 years ago
Test name Executions per second
setProperty Single Random Value 268465.1 Ops/sec
setProperty All Random Values 155007.4 Ops/sec
setAttribute Fixed Values 281622.1 Ops/sec
setAttribute Single Random Value 190020.8 Ops/sec
setAttributey All Random Values 134634.6 Ops/sec
Style by name Fixed Values 245653.1 Ops/sec
Style by name Single Random Value 188940.2 Ops/sec
Style by name All Random Values 126479.6 Ops/sec
Style by property Fixed Values 244360.4 Ops/sec
Style by property Single Random Value 184259.4 Ops/sec
Style by property All Random Values 128274.7 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