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

Merged
merged 4 commits into from
Nov 13, 2024

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 42.85714% with 8 lines in your changes missing coverage. Please review.

Project coverage is 41.23%. Comparing base (acbc34f) to head (e0cc4c6).

Files with missing lines Patch % Lines
integration/localnet/builder/bootstrap.go 0.00% 4 Missing ⚠️
integration/testnet/network.go 60.00% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6446   +/-   ##
=======================================
  Coverage   41.22%   41.23%           
=======================================
  Files        2054     2054           
  Lines      182347   182359   +12     
=======================================
+ Hits        75175    75189   +14     
+ Misses     100871   100870    -1     
+ Partials     6301     6300    -1     
Flag Coverage Δ
unittests 41.23% <42.85%> (+<0.01%) ⬆️

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)

@github-actions github-actions bot added the Stale Label used when marking an issue stale. label Nov 6, 2024
@github-actions github-actions bot closed this Nov 13, 2024
@jordanschalm jordanschalm reopened this Nov 13, 2024
@jordanschalm jordanschalm added this pull request to the merge queue Nov 13, 2024
Merged via the queue into master with commit a764d3e Nov 13, 2024
55 checks passed
@jordanschalm jordanschalm deleted the petera/allow-faster-view-times-testnet branch November 13, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Label used when marking an issue stale.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants