Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor generated benchmark files to allow for more general usage (#…
…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
- Loading branch information
Showing
19 changed files
with
307 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-10.6 MB
beacon-chain/core/state/benchmarks/benchmark_files/bState1Epoch-128Atts-65536Vals.ssz
Binary file not shown.
Binary file removed
BIN
-10.7 MB
beacon-chain/core/state/benchmarks/benchmark_files/bState2Epochs-128Atts-65536Vals.ssz
Binary file not shown.
Binary file removed
BIN
-46.1 KB
beacon-chain/core/state/benchmarks/benchmark_files/fullBlock-128Atts-65536Vals.ssz
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = ["pregen.go"], | ||
data = ["//shared/benchutil/benchmark_files:benchmark_data"], | ||
importpath = "github.com/prysmaticlabs/prysm/shared/benchutil", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//proto/beacon/p2p/v1:go_default_library", | ||
"//shared/params:go_default_library", | ||
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library", | ||
"@com_github_prysmaticlabs_go_ssz//:go_default_library", | ||
"@io_bazel_rules_go//go/tools/bazel:go_default_library", | ||
], | ||
) | ||
|
||
go_test( | ||
name = "go_default_test", | ||
srcs = ["pregen_test.go"], | ||
embed = [":go_default_library"], | ||
) |
Oops, something went wrong.