Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Windows
Desktop
2 years ago
getBoundingClientRect() (simple property access)
262K/s
getBoundingClientRect() (destructured)
255K/s
offsetWidth / offsetHeight (destructured)
215K/s
offsetWidth / offsetHeight (destructured and renamed)
207K/s
offsetWidth / offsetHeight (simple property access)
193K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 262,208 Ops/sec
getBoundingClientRect() (destructured) 254,527 Ops/sec
offsetWidth / offsetHeight (destructured) 214,504 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 206,702 Ops/sec
offsetWidth / offsetHeight (simple property access) 192,708 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: