HTML Preparation code:
AخA
 
1
<div id="test">test</div>
Script Preparation code:
 
var element = document.getElementById('test');
Tests:
  • clientHeight + clientWidth

     
    element.clientHeight;
    element.clientWidth;
  • computedStyle

     
    var computedStyle = window.getComputedStyle(element);
    parseFloat(computedStyle.height);
    parseFloat(computedStyle.widht);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    clientHeight + clientWidth
    computedStyle

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Android 13; Mobile; rv:109.0) Gecko/116.0 Firefox/116.0
Firefox Mobile 116 on Android
View result in a separate tab
Test name Executions per second
clientHeight + clientWidth 4047206.0 Ops/sec
computedStyle 548242.5 Ops/sec