Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36 Edg/93.0.961.52
Chrome 93
Mac OS X 10.15.5
Desktop
3 years ago
Test name Executions per second
clientHeight 842406.1 Ops/sec
offsetHeight 488257.3 Ops/sec
window.getComputedStyle 501620.1 Ops/sec
Multiple: Only _style 246639.3 Ops/sec
Multiple: _style e clientHeight 300620.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight


;