Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132
Windows
Desktop
one year ago
getBoundingClientRect() (simple property access)
1.3M/s
getBoundingClientRect() (destructured)
1.2M/s
offsetWidth / offsetHeight (simple property access)
993K/s
offsetWidth / offsetHeight (destructured)
980K/s
offsetWidth / offsetHeight (destructured and renamed)
904K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 1,263,247 Ops/sec
getBoundingClientRect() (destructured) 1,229,209 Ops/sec
offsetWidth / offsetHeight (simple property access) 992,584 Ops/sec
offsetWidth / offsetHeight (destructured) 980,200 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 903,844 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: