chore(reth-bench-compare): skip last unwind (#20805)

This commit is contained in:
DaniPopes
2026-01-07 15:44:36 +00:00
committed by GitHub
parent 4c064a4d20
commit 6280abedd0

View File

@@ -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)?;