Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:65.0) Gecko/20100101 Firefox/65.0
Firefox 65
Mac OS X 10.13
Desktop
5 years ago
Test name Executions per second
setProperty Single Random Value 411310.8 Ops/sec
setProperty All Random Values 283234.4 Ops/sec
setAttribute Fixed Values 5074046.0 Ops/sec
setAttribute Single Random Value 268606.6 Ops/sec
setAttributey All Random Values 243558.6 Ops/sec
Style by name Fixed Values 343465.3 Ops/sec
Style by name Single Random Value 439903.0 Ops/sec
Style by name All Random Values 302913.7 Ops/sec
Style by property Fixed Values 335303.7 Ops/sec
Style by property Single Random Value 438734.9 Ops/sec
Style by property All Random Values 296961.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