Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Firefox 95
Windows
Desktop
2 years ago
Test name Executions per second
setProperty Single Random Value 422795.5 Ops/sec
setProperty All Random Values 253606.4 Ops/sec
setAttribute Fixed Values 4573749.0 Ops/sec
setAttribute Single Random Value 318334.6 Ops/sec
setAttributey All Random Values 294487.6 Ops/sec
Style by name Fixed Values 392343.0 Ops/sec
Style by name Single Random Value 467484.8 Ops/sec
Style by name All Random Values 276566.9 Ops/sec
Style by property Fixed Values 384515.1 Ops/sec
Style by property Single Random Value 445781.1 Ops/sec
Style by property All Random Values 273768.3 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