-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and augment demo rollup benches (#1282)
* Fix ed25519 version * Comment * Add sov-data-generators dependency + add cycle trackers for more finer performance tracking * Update Cargo.toml Co-authored-by: Nikolai Golub <[email protected]> * Lints * Add benchmarks with prepopulated accounts + Add env variables to prover_benchmark * Update default values for prover data generation * Fixing lints --------- Co-authored-by: Nikolai Golub <[email protected]>
- Loading branch information
1 parent
5884991
commit a8a234c
Showing
30 changed files
with
615 additions
and
186 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 @@ | ||
# Default values for num blocks and transactions per block | ||
BLOCKS ?= 10 | ||
TXNS_PER_BLOCK ?= 100 | ||
NUM_PUB_KEYS ?= 10000 | ||
GENESIS_CONFIG_DIR ?= ../test-data/genesis/benchmark | ||
|
||
export BLOCKS | ||
export TXNS_PER_BLOCK | ||
export NUM_PUB_KEYS | ||
export GENESIS_CONFIG_DIR | ||
|
||
small_bench: | ||
@echo "Small benchmark configuration:" | ||
@BLOCKS=2 TXNS_PER_BLOCK=10 NUM_PUB_KEYS=10 make standard_bench | ||
|
||
realistic_bench: | ||
@echo "Realistic benchmark configuration:" | ||
@BLOCKS=100 TXNS_PER_BLOCK=1000 NUM_PUB_KEYS=1000000 make standard_bench | ||
|
||
standard_bench: | ||
@echo "Running benchmark with $(BLOCKS) transaction blocks, $(TXNS_PER_BLOCK) transactions per block, and $(NUM_PUB_KEYS) public keys" | ||
@cd ../.. && cargo bench --features="bench" --bench=prover_bench |
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
Oops, something went wrong.