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

[Benchnet] Allow configuring view times faster than 1s #6446

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

peterargue
Copy link
Contributor

Configure view times faster than the default of 1 per second by adding --epoch-view-rate N to the bootstrap tool

@codecov-commenter
Copy link

codecov-commenter commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 41.43%. Comparing base (59a9dc7) to head (df3e47a).

Files with missing lines Patch % Lines
integration/localnet/builder/bootstrap.go 0.00% 3 Missing ⚠️
integration/testnet/network.go 57.14% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6446      +/-   ##
==========================================
+ Coverage   40.97%   41.43%   +0.45%     
==========================================
  Files        1429     2021     +592     
  Lines      101098   143942   +42844     
==========================================
+ Hits        41429    59637   +18208     
- Misses      55419    78139   +22720     
- Partials     4250     6166    +1916     
Flag Coverage Δ
unittests 41.43% <40.00%> (+0.45%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@AlexHentschel AlexHentschel left a comment

Choose a reason for hiding this comment

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

thanks for the nice usability improvement for benchnet

@@ -85,6 +86,7 @@ func init() {
flag.IntVar(&testExecutionCount, "test-execution", DefaultTestExecutionCount, "number of test execution")
flag.UintVar(&nClusters, "nclusters", DefaultNClusters, "number of collector clusters")
flag.Uint64Var(&numViewsEpoch, "epoch-length", 10000, "number of views in epoch")
flag.Uint64Var(&numViewsPerSecond, "epoch-view-rate", 1, "number of views per second")
Copy link
Member

Choose a reason for hiding this comment

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

I would suggest to call this target-view-rate because its describes a property of the network across all epochs (in comparison, the other parameters epoch-* usually specify something for one epoch, like the views within one epoch)

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.

4 participants