Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
Chrome 80
Mac OS X 10.15.4
Desktop
4 years ago
Test name Executions per second
clientHeight 1086188.8 Ops/sec
offsetHeight 725307.4 Ops/sec
window.getComputedStyle 582359.1 Ops/sec
Multiple: Only _style 247977.0 Ops/sec
Multiple: _style e clientHeight 314147.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight