Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112
Linux
Desktop
one year ago
Test name Executions per second
clientHeight 588323.1 Ops/sec
offsetHeight 607504.9 Ops/sec
window.getComputedStyle 258758.1 Ops/sec
Multiple: Only _style 129015.6 Ops/sec
Multiple: _style e clientHeight 158974.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight


;