Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36
Chrome 89
Mac OS X 10.14.6
Desktop
3 years ago
Test name Executions per second
clientHeight 733253.7 Ops/sec
offsetHeight 470100.1 Ops/sec
window.getComputedStyle 519417.3 Ops/sec
Multiple: Only _style 244116.5 Ops/sec
Multiple: _style e clientHeight 280575.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight