HTML Preparation code:
Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    clientWidth / clientHeight (destructured and renamed)
    clientWidth / clientHeight (destructured)
    clientWidth / clientHeight (simple property access)
    getBoundingClientRect() (destructured)
    getBoundingClientRect() (simple property access)
    getComputedStyle

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136 on Mac OS X 10.15.7
View result in a separate tab
getBoundingClientRect() (simple property access)
2.3M/s
getBoundingClientRect() (destructured)
2.2M/s
clientWidth / clientHeight (destructured)
1.8M/s
clientWidth / clientHeight (simple property access)
1.7M/s
clientWidth / clientHeight (destructured and renamed)
1.7M/s
getComputedStyle
837K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 2,288,414 Ops/sec
getBoundingClientRect() (destructured) 2,246,912 Ops/sec
clientWidth / clientHeight (destructured) 1,764,759 Ops/sec
clientWidth / clientHeight (simple property access) 1,743,219 Ops/sec
clientWidth / clientHeight (destructured and renamed) 1,742,590 Ops/sec
getComputedStyle 837,060 Ops/sec