feat(dursto): ERC-20 benchmark for loading from snapshot#969
Open
feat(dursto): ERC-20 benchmark for loading from snapshot#969
Conversation
36c32f9 to
e9180e3
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #969 +/- ##
==========================================
- Coverage 89.59% 89.55% -0.04%
==========================================
Files 125 125
Lines 26863 26863
Branches 26863 26863
==========================================
- Hits 24067 24058 -9
- Misses 2166 2175 +9
Partials 630 630 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9386dd1 to
0d47e6a
Compare
|
Benchmark results for revision a64c992:
Full results
Compare the results above with those for the default branch. |
kurtisc
requested changes
Apr 1, 2026
0d47e6a to
3832936
Compare
Collaborator
Author
|
Rebasing on main surfaced an issue for |
Contributor
There was a problem hiding this comment.
The path will need to be updated in kernels/etherlink/xtask/src/main.rs for when this file is regenerated.
| operations.extend_from_slice(&erc_20_setup); | ||
| for i in 0..transaction_count { | ||
| operations.extend_from_slice(&erc_20_transaction); | ||
| if i % block_frequency == 0 { |
Contributor
There was a problem hiding this comment.
In theory block_frequency can be configured to 0, so it should be validated beforehand.
3832936 to
eb0bb50
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes RV-952.
What
Extends the existing benchmark
cargo bench -p octez-riscv-durable-storage --bench databaseto makeBLOCK_FREQUENCY,ERC_20_TRANSACTION_COUNTandPREPOPULATED_NODE_KEYS_COUNTconfigurable through environment variables.Also introduces a new benchmark
database_checkoutthat builds a database, commits it to disk and then loads it from scratch before running the ERC-20 transactions emulation scenario.Why
To understand how the benchmark behaves when the merkle layer is loaded lazily.
How
The new benchmark
database_checkout:Manually Testing
Overriding configuration:
Running the new benchmark with default configuration:
Tasks for the Author