Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Windows
Desktop
one year ago
getBoundingClientRect() (simple property access)
1.0M/s
getBoundingClientRect() (destructured)
1.0M/s
clientWidth / clientHeight (destructured)
817K/s
clientWidth / clientHeight (destructured and renamed)
775K/s
clientWidth / clientHeight (simple property access)
769K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 1,038,202 Ops/sec
getBoundingClientRect() (destructured) 1,022,040 Ops/sec
clientWidth / clientHeight (destructured) 817,490 Ops/sec
clientWidth / clientHeight (destructured and renamed) 775,251 Ops/sec
clientWidth / clientHeight (simple property access) 768,936 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: