Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36
Chrome 79
Windows 7
Desktop
4 years ago
Test name Executions per second
setProperty Single Random Value 338642.6 Ops/sec
setProperty All Random Values 191054.1 Ops/sec
setAttribute Fixed Values 371587.5 Ops/sec
setAttribute Single Random Value 264519.4 Ops/sec
setAttributey All Random Values 183029.9 Ops/sec
Style by name Fixed Values 345797.4 Ops/sec
Style by name Single Random Value 263835.0 Ops/sec
Style by name All Random Values 161523.2 Ops/sec
Style by property Fixed Values 328374.1 Ops/sec
Style by property Single Random Value 264315.7 Ops/sec
Style by property All Random Values 163532.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


;