Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Windows
Desktop
2 years ago
getBoundingClientRect() (destructured)
660K/s
getBoundingClientRect() (simple property access)
625K/s
offsetWidth / offsetHeight (destructured)
557K/s
offsetWidth / offsetHeight (destructured and renamed)
553K/s
offsetWidth / offsetHeight (simple property access)
544K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (destructured) 659,583 Ops/sec
getBoundingClientRect() (simple property access) 625,209 Ops/sec
offsetWidth / offsetHeight (destructured) 557,165 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 553,118 Ops/sec
offsetWidth / offsetHeight (simple property access) 544,414 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: