HTML Preparation code:
AخA
 
1
<div class="widthTest" style="width:270px;"></div>
Tests:
  • clientWidth

     
    document.querySelector('.widthTest').clientWidth;
  • Get property

     
    window.getComputedStyle(document.querySelector('.widthTest')).getPropertyValue("width")
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    clientWidth
    Get property

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0
Firefox 73 on Windows 7
View result in a separate tab
Test name Executions per second
clientWidth 1342840.0 Ops/sec
Get property 317149.0 Ops/sec