Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Chrome 137
Windows
Desktop
one year ago
getBoundingClientRect() (destructured)
890K/s
getBoundingClientRect() (simple property access)
878K/s
offsetWidth / offsetHeight (simple property access)
764K/s
offsetWidth / offsetHeight (destructured and renamed)
748K/s
offsetWidth / offsetHeight (destructured)
729K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (destructured) 889,927 Ops/sec
getBoundingClientRect() (simple property access) 877,793 Ops/sec
offsetWidth / offsetHeight (simple property access) 764,010 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 747,974 Ops/sec
offsetWidth / offsetHeight (destructured) 729,111 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: