Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Linux
Desktop
one year ago
getBoundingClientRect() (simple property access)
1.2M/s
getBoundingClientRect() (destructured)
1.2M/s
clientWidth / clientHeight (simple property access)
970K/s
clientWidth / clientHeight (destructured)
962K/s
clientWidth / clientHeight (destructured and renamed)
929K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 1,229,718 Ops/sec
getBoundingClientRect() (destructured) 1,205,219 Ops/sec
clientWidth / clientHeight (simple property access) 969,982 Ops/sec
clientWidth / clientHeight (destructured) 962,236 Ops/sec
clientWidth / clientHeight (destructured and renamed) 929,377 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: