Extend DB benchmark to support state store (SS) backends#2995
Open
Extend DB benchmark to support state store (SS) backends#2995
Conversation
Add SSPebbleDB and SSComposite backend types so the existing ERC20 benchmark can drive the historical state store using the same changeset write path. Made-with: Cursor
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
Add a combinedWrapper that fans out changeset writes to both a State Commit and State Store backend, mirroring production. Two new backend types: FlatKV+SSPebble and CompositeDual+SSComposite. Made-with: Cursor
Verifies SSPebbleDB and FlatKV+SSPebble work with the existing runBenchmark harness (version tracking, changeset generation, etc). Made-with: Cursor
SSPebbleDB bypassed the SS layer (Tier 2) and hit raw PebbleDB MVCC directly - not a real production path. All SS backends now go through CompositeStateStore, matching the architecture. Extracted shared openSSComposite helper to deduplicate SS creation. Made-with: Cursor
Drop FlatKV+SSComposite since the production path is CompositeDual+SS. Fix combinedWrapper version tracking to use SS version (consistent across all SC backends). Made-with: Cursor
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.
Describe your changes and provide context
Extend cryptosim DB benchmark to support state store (SS) backends via a lightweight StateStore → DBWrapper adapter
Adds SSPebbleDB (raw MVCC) and SSComposite (full CompositeStateStore with EVM sub-DB routing) so the same ERC20 changeset workload can benchmark the historical state store
Suppports mode for SC + SS
Testing performed to validate your change