Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 OPR/62.0.3331.88
Opera 62
Windows
Desktop
5 years ago
Test name Executions per second
clientHeight 1025468.1 Ops/sec
offsetHeight 682585.2 Ops/sec
window.getComputedStyle 420443.9 Ops/sec
Multiple: Only _style 225262.8 Ops/sec
Multiple: _style e clientHeight 299637.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight