Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36
Chrome 91
Linux
Desktop
3 years ago
Test name Executions per second
clientHeight 230249.3 Ops/sec
offsetHeight 164984.7 Ops/sec
window.getComputedStyle 75788.5 Ops/sec
Multiple: Only _style 44064.9 Ops/sec
Multiple: _style e clientHeight 67965.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight


;