Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Linux
Desktop
8 months ago
Test name Executions per second
window.scrollTo 18397.4 Ops/sec
TEST_Body_DOM.scrollTop = 10921.9 Ops/sec
TEST_Body_DOM.scrollTo 15517.4 Ops/sec
TEST_Body_DOM.scroll 15471.4 Ops/sec
window.scroll 18311.5 Ops/sec
window.scrollBy 15403.6 Ops/sec
TEST_Body_DOM.scrollBy 15390.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