HTML Preparation code:
AخA
 
1
<div id="teste">teste</div>
Tests:
  • clientHeight

     
    document.getElementById('teste').clientHeight;
  • offsetHeight

     
    document.getElementById('teste').offsetHeight;
  • getBoundingClientRect

     
    document.getElementById('teste').getBoundingClientRect().height;
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    clientHeight
    offsetHeight
    getBoundingClientRect

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 OPR/116.0.0.0 (Edition developer)
Opera 116 on Windows
View result in a separate tab
Test name Executions per second
clientHeight 1425147.5 Ops/sec
offsetHeight 1445403.5 Ops/sec
getBoundingClientRect 933629.6 Ops/sec