Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Mac OS X 10.15.7
Desktop
9 hours ago
Test name Executions per second
window.scrollTo 434943.7 Ops/sec
TEST_Body_DOM.scrollTop = 316997.5 Ops/sec
TEST_Body_DOM.scrollTo 359135.0 Ops/sec
TEST_Body_DOM.scroll 367087.7 Ops/sec
window.scroll 422884.8 Ops/sec
window.scrollBy 399814.8 Ops/sec
TEST_Body_DOM.scrollBy 364784.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • window.scrollTo

  • TEST_Body_DOM.scrollTop =

  • TEST_Body_DOM.scrollTo

  • TEST_Body_DOM.scroll

  • window.scroll

  • window.scrollBy

  • TEST_Body_DOM.scrollBy