Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Linux
Desktop
one year ago
Test name Executions per second
window.scrollTo 97566.8 Ops/sec
TEST_Body_DOM.scrollTop = 75217.7 Ops/sec
TEST_Body_DOM.scrollTo 88822.1 Ops/sec
TEST_Body_DOM.scroll 88934.1 Ops/sec
window.scroll 99265.8 Ops/sec
window.scrollBy 92865.6 Ops/sec
TEST_Body_DOM.scrollBy 88808.6 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