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)
867K/s
clientWidth / clientHeight (destructured and renamed)
866K/s
clientWidth / clientHeight (simple property access)
833K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 1,019,449 Ops/sec
getBoundingClientRect() (destructured) 1,007,510 Ops/sec
clientWidth / clientHeight (destructured) 866,864 Ops/sec
clientWidth / clientHeight (destructured and renamed) 865,750 Ops/sec
clientWidth / clientHeight (simple property access) 833,371 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: