feat(reth-bench-compare): add persistence-based flow optimization for reth-bench (#20869)

Co-authored-by: Alexey Shekhirin <github@shekhirin.com>
This commit is contained in:
YK
2026-01-09 22:58:21 +08:00
committed by GitHub
parent 3ddf0bd729
commit 07beb76cf7
9 changed files with 445 additions and 33 deletions

View File

@@ -45,6 +45,16 @@ pub struct BenchmarkArgs {
)]
pub engine_rpc_url: String,
/// The `WebSocket` RPC URL to use for persistence subscriptions.
///
/// If not provided, will attempt to derive from engine-rpc-url by:
/// - Converting http/https to ws/wss
/// - Using port 8546 (standard RPC `WebSocket` port)
///
/// Example: `ws://localhost:8546`
#[arg(long, value_name = "WS_RPC_URL", verbatim_doc_comment)]
pub ws_rpc_url: Option<String>,
/// The path to the output directory for granular benchmark results.
#[arg(long, short, value_name = "BENCHMARK_OUTPUT", verbatim_doc_comment)]
pub output: Option<PathBuf>,