Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/21A329 Twitter for iPhone/10.7
Mobile Safari 17
iOS 17.0
Mobile
one year ago
Test name Executions per second
3 x getComputedStyle 297.5 Ops/sec
2 x getComputedStyle + 1 x getBoundingClientRect 235.3 Ops/sec
HTML Preparation code:
Tests:
  • 3 x getComputedStyle

  • 2 x getComputedStyle + 1 x getBoundingClientRect