Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136
Windows
Desktop
one year ago
getBoundingClientRect() (simple property access)
1.2M/s
getBoundingClientRect() (destructured)
1.1M/s
offsetWidth / offsetHeight (simple property access)
964K/s
offsetWidth / offsetHeight (destructured)
913K/s
offsetWidth / offsetHeight (destructured and renamed)
856K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 1,186,020 Ops/sec
getBoundingClientRect() (destructured) 1,126,076 Ops/sec
offsetWidth / offsetHeight (simple property access) 964,423 Ops/sec
offsetWidth / offsetHeight (destructured) 912,941 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 855,516 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: