Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Chrome 96
Mac OS X 10.12.6
Desktop
2 years ago
Test name Executions per second
clientHeight 437604.4 Ops/sec
offsetHeight 201309.5 Ops/sec
window.getComputedStyle 242296.4 Ops/sec
Multiple: Only _style 130475.8 Ops/sec
Multiple: _style e clientHeight 160460.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight