Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add more test for measuring speed of synching #8536

Closed
Tracked by #8457
LHerskind opened this issue Sep 13, 2024 · 0 comments · Fixed by #8550
Closed
Tracked by #8457

test: Add more test for measuring speed of synching #8536

LHerskind opened this issue Sep 13, 2024 · 0 comments · Fixed by #8550
Assignees

Comments

@LHerskind
Copy link
Contributor

LHerskind commented Sep 13, 2024

There are currently no solid test for testing the speed of a node sync. Since the block building is currently very slow, I think the most sane approach is that we build a fixture of 50 blocks that are stored on disk.

We can then run tests in the future, where we manipulate the time of anvil such that they are valid, and afterwards start a node that is using the setup and simply measure the time it takes it to sync.

An extension of this test should also allow us to test a scenario where the pending chain is pruned, without needing the full state to be handled correct, and merely see if the archiver behaves as intended.

@github-project-automation github-project-automation bot moved this to Todo in A3 Sep 13, 2024
@LHerskind LHerskind self-assigned this Sep 13, 2024
LHerskind added a commit that referenced this issue Sep 16, 2024
Fixes #8536 by introducing an initial setup for testing synching. 

Adds a new "spam" contract that uses a large amount of data, such that
we can see the differences between "noop" transactions and more complex
things.

Adds a new `l1StartTime` option to the setup such that we can do an
instant "warp" to make the execution of past stored blocks much simpler.

While the intention was to have a lot of blocks to see synching over a
longer period, building that with non-trivial transactions will take
until I retire.
![Aging Matt Damon
GIF](https://media4.giphy.com/media/GrUhLU9q3nyRG/giphy.gif)

The test is **NOT** set to run in CI explicitly as it is a "measure"
test more than anything else, and without there being a target it is a
bit weird to restrict it 🤷
@github-project-automation github-project-automation bot moved this from Todo to Done in A3 Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant