Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0
Chrome 130
Windows
Desktop
one month ago
Test name Executions per second
window.scrollTo 41619.0 Ops/sec
TEST_Body_DOM.scrollTop = 33307.4 Ops/sec
TEST_Body_DOM.scrollTo 38906.2 Ops/sec
TEST_Body_DOM.scroll 40868.2 Ops/sec
window.scroll 49769.4 Ops/sec
window.scrollBy 46885.4 Ops/sec
TEST_Body_DOM.scrollBy 41662.9 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