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

feat: add stats logging to trin-execution/tests/content_generation.rs #1477

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

morph-dev
Copy link
Collaborator

What was wrong?

The trin-execution/tests/content_generation.rs is not logging any useful information at the moment.

How was it fixed?

Adding stats for:

  • count of content
  • size of content that would be gossiped
  • size of content that would be stored

These stats are both per block and combined.

Also added env variable (BLOCKS) that controls how many blocks to execute.


Using this PR, I found that for the first 1 million blocks, we have a total of:

  • 15.3 million content key/value pairs
  • 26.8 GB of data to gossip (with proofs)
  • 7 GB of data to store (without proofs)

Running this took ~1.5 h.

To-Do

@morph-dev morph-dev self-assigned this Sep 23, 2024
Copy link
Member

@KolbyML KolbyML left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@morph-dev morph-dev merged commit ba8ecd0 into ethereum:master Sep 24, 2024
9 checks passed
@morph-dev morph-dev deleted the trin_execution_1m branch September 24, 2024 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants