Run details:
Mozilla/5.0 (Linux; Android 7.1.1; SM-J510FN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.93 Mobile Safari/537.36
Chrome Mobile 79
Android 7.1.1
Mobile
5 years ago
Test name Executions per second
clientHeight 58099.4 Ops/sec
offsetHeight 33646.3 Ops/sec
window.getComputedStyle 25272.2 Ops/sec
Multiple: Only _style 13370.0 Ops/sec
Multiple: _style e clientHeight 17667.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight