Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110
Linux
Desktop
one year ago
Test name Executions per second
window.scrollTo 50296.7 Ops/sec
TEST_Body_DOM.scrollTop = 38728.0 Ops/sec
TEST_Body_DOM.scrollTo 46809.3 Ops/sec
TEST_Body_DOM.scroll 46175.7 Ops/sec
window.scroll 50261.5 Ops/sec
window.scrollBy 46186.4 Ops/sec
TEST_Body_DOM.scrollBy 46468.3 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