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

Refactor generated benchmark files to allow for more general usage #4436

Merged
merged 21 commits into from Jan 17, 2020

Conversation

0xKiwi
Copy link
Contributor

@0xKiwi 0xKiwi commented Jan 7, 2020

This PR takes the SSZ files used for benchmarking and moves them to their own benchutil folder.
It also moves the tool to generate the benchmark files to tools/benchmark-files-gen, with added documentation to generate the files if needed.

Now any benchmarking tests can just use the pregen state within benchutil :)

@terencechain
Copy link
Member

@0xKiwi lint fails

@stale
Copy link

stale bot commented Jan 14, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale There hasn't been any activity here in some time... label Jan 14, 2020
@codecov
Copy link

codecov bot commented Jan 15, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@de3b5d1). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #4436   +/-   ##
=========================================
  Coverage          ?   58.57%           
=========================================
  Files             ?      236           
  Lines             ?    16114           
  Branches          ?        0           
=========================================
  Hits              ?     9438           
  Misses            ?     5301           
  Partials          ?     1375

@0xKiwi 0xKiwi removed the Stale There hasn't been any activity here in some time... label Jan 15, 2020
@0xKiwi 0xKiwi changed the title [WIP] Refactor generated benchmark files to allow for more general usage Refactor generated benchmark files to allow for more general usage Jan 16, 2020
@0xKiwi 0xKiwi self-assigned this Jan 16, 2020
@0xKiwi 0xKiwi added the Ready For Review A pull request ready for code review label Jan 16, 2020
rauljordan
rauljordan previously approved these changes Jan 16, 2020

// ValidatorCount is for declaring how many validators the benchmarks will be
// performed with. Default is 65536 or 2M ETH staked.
var ValidatorCount = uint64(65536)
Copy link
Member

Choose a reason for hiding this comment

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

Can you change this to genesis validator count?

@0xKiwi 0xKiwi merged commit d04399e into prysmaticlabs:master Jan 17, 2020
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 24, 2020
…rysmaticlabs#4436)

* Begin to refactor benchmark files to testutil

* Complete most of refactoring

* Fix file path

* gofmt

* Fix path

* Move generatego to tools/

* Move gen util to tools/benchmark-files-gen

* Add comments to pregen funcs

* Make function names consistent

* Update README

* Redo benchmarks with 16384 validators
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 28, 2020
…rysmaticlabs#4436)

* Begin to refactor benchmark files to testutil

* Complete most of refactoring

* Fix file path

* gofmt

* Fix path

* Move generatego to tools/

* Move gen util to tools/benchmark-files-gen

* Add comments to pregen funcs

* Make function names consistent

* Update README

* Redo benchmarks with 16384 validators
@0xKiwi 0xKiwi deleted the refactor-files branch March 15, 2020 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants