Run details:
Mozilla/5.0 (Linux; Android 9; SM-G955F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Mobile Safari/537.36
Chrome Mobile 81
Android
Mobile
4 years ago
Test name Executions per second
clientHeight 55848.8 Ops/sec
offsetHeight 31570.5 Ops/sec
window.getComputedStyle 33386.6 Ops/sec
Multiple: Only _style 18379.4 Ops/sec
Multiple: _style e clientHeight 23229.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight