Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Chrome 142
Windows
Desktop
7 months ago
getBoundingClientRect() (destructured)
723K/s
getBoundingClientRect() (simple property access)
719K/s
offsetWidth / offsetHeight (destructured)
573K/s
offsetWidth / offsetHeight (simple property access)
567K/s
offsetWidth / offsetHeight (destructured and renamed)
556K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (destructured) 722,971 Ops/sec
getBoundingClientRect() (simple property access) 719,305 Ops/sec
offsetWidth / offsetHeight (destructured) 573,229 Ops/sec
offsetWidth / offsetHeight (simple property access) 567,061 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 556,245 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: