mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
chore(reth-bench-compare): skip last unwind (#20805)
This commit is contained in:
@@ -618,6 +618,7 @@ async fn run_benchmark_workflow(
|
||||
for (i, &git_ref) in refs.iter().enumerate() {
|
||||
let ref_type = ref_types[i];
|
||||
let commit = commits[i];
|
||||
let is_last = i == refs.len() - 1;
|
||||
info!("=== Processing {} reference: {} ===", ref_type, git_ref);
|
||||
|
||||
// Switch to target reference
|
||||
@@ -681,7 +682,12 @@ async fn run_benchmark_workflow(
|
||||
node_manager.stop_node(&mut node_process).await?;
|
||||
|
||||
// Unwind back to original tip
|
||||
node_manager.unwind_to_block(original_tip).await?;
|
||||
// Skip final unwind - it's unnecessary since this is the last benchmark
|
||||
if is_last {
|
||||
info!("Skipping final unwind (last benchmark run)");
|
||||
} else {
|
||||
node_manager.unwind_to_block(original_tip).await?;
|
||||
}
|
||||
|
||||
// Store results for comparison
|
||||
comparison_generator.add_ref_results(ref_type, &output_dir)?;
|
||||
|
||||
Reference in New Issue
Block a user