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

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    window.scrollTo
    TEST_Body_DOM.scrollTop =
    TEST_Body_DOM.scrollTo
    TEST_Body_DOM.scroll
    window.scroll
    window.scrollBy
    TEST_Body_DOM.scrollBy

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 hours ago)
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 on Mac OS X 10.15.7
View result in a separate tab
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